I can't answer it any better than wiki does, so I'll just quote the wiki article.
Some information about current quenching is given here: (single-photon avalanche diodes) To get more details, you would probably need to do a literature search on these " active and passive current quenching techniques". But, basically, the voltage must be precisely controlled to control the gain and a current quenching must be implemented to reset the device and prevent damage. In this way you can have current pulses corresponding with single photon events and occasional shot noise events. If the photon rate is much greater than the shot noise rate, you have a useful photon counter.
If very high gain is needed (10^5 to 10^6), certain APDs (single photon avalanche diodes) can be operated with a reverse voltage above the APD's breakdown voltage. In this case, the APD needs to have its signal current limited and quickly diminished. Active and passive current quenching techniques have been used for this purpose. APDs that operate in this high-gain regime are in Geiger mode. This mode is particularly useful for single photon detection provided that the dark count event rate is sufficiently low.
Some information about current quenching is given here: (single-photon avalanche diodes) To get more details, you would probably need to do a literature search on these " active and passive current quenching techniques". But, basically, the voltage must be precisely controlled to control the gain and a current quenching must be implemented to reset the device and prevent damage. In this way you can have current pulses corresponding with single photon events and occasional shot noise events. If the photon rate is much greater than the shot noise rate, you have a useful photon counter.