added nice version of aggregated plot.count_test