Add task counter