db.collection.count example mongodb Example: mongo count db.collection.countDocuments( <query>, <options> )