Quantum and classical characterization of single/few photon detectors