Consider the options array in `Model::countBy()` (see #7033)