approach to count all events