--HR-290 Function to get count of cases by status