In this paper, a pixel for time-resolved single photon detection is presented. The pixel includes a passively quenched Single-Photon Avalanche Diode (SPAD), a gating circuit and an analog counter based on charge sharing approach. The analog output signal delivered by the pixel is quantized in discrete levels, corresponding to different photon counts. Three linear arrays with different pixel versions were fabricated in a standard 0.15μm CMOS technology. The electro-optical characterization demonstrated a counter non-uniformity of 1.1% and a Photo-Response Non-Uniformity (PRNU) of 1.9%, including SPAD non-uniformity. The pixel exhibits shot-noise limited operation and a minimum gating window width of 530ps FWHM.