update task count