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 Posting Shark
890 posts since Sep 2008
Reputation Points: 297
Solved Threads: 170
Skill Endorsements: 5