improve -agg_by_count output