Tool for counting models based on index query

It can be useful to know how many things we have.