In MongoDB the db.collection.estimatedDocumentCount()
method returns the count of all documents in a collection or view.
The collection
part is the name of the collection or view to perform the count operation on.
The db.collection.estimatedDocumentCount()
method wraps the count
command.