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