State counter added

For each state panel now there is a counter, showing actual number of tasks that are in a state.