Well, as both variables are named counter you would expect that!
Name them counterA and counterB or something.
I expect you realise that the number of clicks recorded will apply only to that particular user in that browser session. If you are trying to create a poll where all users can see the results you will need server-side scripting.
"Think about how stupid the average person is, and then realize that half of them are more stupid than that!" - George Carlin