Optimization of seq_count for seq_hash_agg