Start by correcting this typo, it would make some progress. Then repost the code and tell us what you expect from it and what you got.
for ( counter=0; counter < 5; counter++) {
Start by correcting this typo, it would make some progress. Then repost the code and tell us what you expect from it and what you got.
for ( counter=0; counter < 5; counter++) {