how to know the number of documents in a mongo collections code example Example: see number of documents in mongodb collection db.collection.count()