Use iterators for tally counter