Update task count on search