Added counter for task and notity