https://learn.microsoft.com/en-us/dotnet/api/system.linq.asyncenumerable.countby?view=net-10.0
AsyncEnumerable.CountBy Method (System.Linq) | Microsoft Learn
Returns the count of elements in the source sequence grouped by key.
methodsystemlinqmicrosoftlearn