counter keeps accurate tally of tasks