expressjs count documents with conditions code example Example: mongoose count model.estimatedDocumentCount();