check count of item in collection in mongo db code example Example: see number of documents in mongodb collection db.collection.count()