n_replicates function

Determine the number of replicates in a model