You are using the variable counter to store how many times the button has been pushed. You can display this value with the printf command:
printf("%i ", counter);
Moschops
Practically a Master Poster
620 posts since Sep 2008
Reputation Points: 258
Solved Threads: 117