The counter was the only variable which needed to be an integer.