Fixed patientService.getPatientCount method - TRUNK-3822