SERVER-69257ClosedFixed

COUNT_SCAN plan not selected when unfiltered $group + $sum on _id performed

As of DRIVERS-501 the driver [CRUD specification|https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#countdocuments] defines a pipeline to be used to count documents without resorting to the [{{count}} command|https://www.mongodb.com/docs/manual/reference/command/count/] (due to potential [inaccurate counts without query predicates|https://www.mongodb.com/docs/manual/reference/command/count/#inaccurate-counts-without-query-predicate]). Without specifying a {{filter}}

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1024
Components
Server components related to this issue
Query Planning
Labels
Tags and classification
asyaquick-win