Fix missing reference to patient_count