n_compartments function

Determine the number of compartments in a model