fetch processInstances' count