Photon number resolving detection, which means to discriminate the number of incident photons, is required technology in various fields such as optical quantum information processing, quantum communication, and quantum metrology. Especially in the field of optical quantum computing, a photon-number-resolving detector is thought to play an important role in preparation of non-Gaussian states [1] which are complex quantum states required for universal quantum computation and error correction.