self.event_count is reset at every iteration of the check, it should just be a local variable instead of an attribute