Variable not incrementing correctly

SOLVED!

The issue was using = in my if statement instead of ==

doh! :]