cohort_count function

Get cohort counts from a generated_cohort_set object.