Finalised the group by count aggregation framework: now there are three ways to aggregate. 1.) DISTINCT: get the list of distinct values without count. 2.) GROUP COUNT: get the count of each element of the list. 3.) GROUP COUNT NESTED: get the count of the leaf element of the combination of tags.
Need to per sure revising COntologyWrapper tests.