for $x in $results
group by $count := $x(1)
I tried the code variant βfor $r in $results let $count := $r(1)β also out. But I wonder that the incidence β1β (only one) would be determined then for all record set counters.
An other simple query is working as expected.
id|contributor_count 123|1 45|1 67|1 89|2
Thus I would expect a data display like the following for the discussed query variant.
contributor_count|incidence 1|3 2|1
Regards, Markus