adding a counter for tasks closing