Q:

see number of documents in mongodb collection

db.collection.count()
1
db.collection.countDocuments( <query>, <options> )
1

New to Communities?

Join the community