javascript mongoose countdocuments code example Example: mongoose count model.estimatedDocumentCount();