Ditched int counters in favor of iterators. Benchmark went from ~1m15s to ~8.5s