Counters and notifications linked to the tasks

I had to include the commits from #691