how to index query Count in Mongodb code example Example: mongo count db.collection.countDocuments( <query>, <options> )