$count (aggregation) — MongoDB Manualhttps://docs.mongodb.com › reference › operator › count code example
Example: mongo count
db.collection.countDocuments( <query>, <options> )
db.collection.countDocuments( <query>, <options> )