aggregateHavingEventCounts