mongo query to find total number of documents in colection code example Example: see number of documents in mongodb collection db.collection.count()