Measurement of the quantum phase by photon counting | Synapse