I think “counts” is a better name for this function