count_patients_with_event function

Count the number of patients with a particular event