mongodb count number of documents in collection code example
Example 1: see number of documents in mongodb collection
db.collection.count()
Example 2: count collection mongodb
db.mycollection.count()
db.collection.count()
db.mycollection.count()