User Report error: 'count is not allowed in this atlas tier'

I get this error when trying to run the test for the User Report ticket.


This is the code for the pipeline

Any workarounds for this?

rename the “comments” field in the accumulators to “count”
or you can use
Bson group_stage = Aggregates.sortByCount("$email");
instead of the group stage .