mongoose count number of inserted code example Example: mongoose count model.estimatedDocumentCount();