mingo
    Preparing search index...
    $sortByCount: PipelineOperator = ...

    Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group.

    usage.