Fix computation of total participations

The previous value was a count of aggregates of participations,
not a count of individual participations.

There is now a count computation for each aggregate, followed with
a sum computation of the counts to get the actual total.