Implemented xsofts suggestion for a saturating counter in the scheduler