Gets the number of tasks in each state

Language