Keep track of the number of tasks executed within the scheduler.