Remove unnecessary counting.