get count of documents in mongoose with single query code example Example: mongoose count documents await model.countDocuments({ name: 'Florin' })