Low-noise single-photon detection is a prerequisite for quantum information processing using photonic qubits. In particular, detectors that are able to accurately resolve the number of photons in an incident light pulse will find application in functions such as quantum teleportation and linear optics quantum computing. more generally, such a detector will allow the advantages of quantum light detection to be extended to stronger optical signals, permitting optical measurements limited only by fluctuations in the photon number of the source. Here we demonstrate a practical high-speed device, which allows the signals arising from multiple photon-induced avalanches to be precisely discriminated. We use a type of silicon avalanche photodiode in which the lateral electric field profile is strongly modulated in order to realize a spatially multiplexed detector. Clearly discerned multiphoton signals are obtained by applying sub-nanosecond voltage gates in order to restrict the detector current.