The += 1 bit is interesting. I have never seen anyone do that before. More common just to use i++