mongoose count find results code example
Example 1: mongoose count documents
await model.countDocuments({ name: 'Florin' })
Example 2: mongoose count
model.estimatedDocumentCount();
await model.countDocuments({ name: 'Florin' })
model.estimatedDocumentCount();