minimize count of events