Returns the number of participants in a cohort if the supplied query were to be applied.
cb_participant_count(cohort, query = list(), keep_query = TRUE)
A cohort object. (Required)
See constructor function cb_create_cohort
or cb_load_cohort
A phenotype query defined using the codephenotype function and logic operators (see example below)
Apply newly specified query on top of exisiting query (Default: TRUE)
A list with count of participants in the cohort and the total no. of participants in the dataset.