MONGODB get number docs in collection code example Example: see number of documents in mongodb collection db.collection.count()