Improved comments and increment is simpler
Tested increment counter
Forgot to uncomment this code