configurable number of events to generate