how to get count of a list in a record using mongodb code example
Example 1: see number of documents in mongodb collection
db.collection.count()
Example 2: mongo count
db.collection.countDocuments( <query>, <options> )
db.collection.count()
db.collection.countDocuments( <query>, <options> )