Keep track of the number of events waiting in queues.