title: Mongoid: How to return the count of documents matching specific criteria?
body: <p>I need to return a list of counts (all records, all records matching a certain criteria). I know how to do this using MySQL (<code>SELECT COUNT(*) WHERE ...</code>) but I'm not familiar with how to do this using Mongo and Mongoid. How can I fetch these counts in the most efficient way?</p>