BS-11333 : For the monitoring, need to get the number of open process instances by process definition

- Fix the filters for the fillCounters for the number of the failed/open cases, for filter on the id of the case