display how many documents are in a collection mongodb code example Example: see number of documents in mongodb collection db.collection.count()