add task counter for each task