Update number of events.