add count() for returning number of events in current period