Added phantom event counter for measurement.