summarize_num_patients function

Count number of patients