Rigorous characterization method for photon-number statistics.