count matched documents in mongoose code example Example: mongoose count documents await model.countDocuments({ name: 'Florin' })