Create the counter variable i and set it to 0.

Make sure to type var i = 0;.