class to keep track of events over the past minute and hour, respectively