Refactored numberOfPatients