add -exact_count and -agg_by_count flags