Effects of rate variation on the counting statistics of dead-time-modified Poisson processes