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