Detectors that can resolve photon number are needed in many quantum information technologies. In order to be useful in quantum information processing, such detectors should be simple, easy to use, and be scalable to resolve any number of photons, as the application may require great portability such as in quantum cryptography. Here we describe the construction of a time-multiplexed detector, which uses a pair of standard avalanche photodiodes operated in Geiger mode. The detection technique is analysed theoretically and tested experimentally using a pulsed source of weak coherent light.