introduce aggregate_count_for