Executing the histogram aggregation