Optimum pulse repetition rates for single photon counting experiments