We report measurement of the photon-number distributions of zeros and ones that emerge from an erbium-doped fiber amplifier (EDFA) in an on-off modulated communication system. Single-mode single-photon resolution was achieved by employing the method of optical homodyne tomography. The measured distributions agree with the quantum predictions of a Bose-Einstein distribution for the zeros and a Laguerre (noncentral negative binomial) distribution for the ones over a dynamic range up to 40 dB. The resulting noise figure of the amplifier compares well to that measured by an optical spectrum analyzer.