Error description :
Nested aggregation error.
Column must have the property AggregationType set to the same
value as AggregationType of the field it references “CountProperty_SupplierSecondary”
The only exception is a combination of Count(Count()) which is not allowed and should be replaced by Sum(Count()) to calculate the total count.
The sum(count()) case is modelled but causes the nested error.