Add the dynamic query for employee count of task.