SERVER-137968ClosedFixed

Add counter for execution engine used in query stats

In the future it will be more difficult to determine which queries use SBE and which use classic. Let's add a counter in query stats for which engine was used. It can be in the same place the plan shape counters are counted: https://github.com/10gen/mongo/blob/aeb839c4b21a0d5b845cebf31258582946ee5d57/src/mongo/db/query/get_executor_deferred_engine_choice_lowering.cpp#L69-L82

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-rc10259.0.9
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
plan-shape-counters