maxNumberOfEvents