Added getter for numberOfEvents