On button press increase number

Hi,
im fresh in action script and in new member on this forum. Please, if somebody can help me out with some basic as things. I work in AS2.

So i have 10 buttons. I need script which will increase the number for 1, (0/10) when pressed. When the same button is pressed twice, then i want not to raise the number.
When all the buttons are pressed, (when the number reaches 10/10) i wish that animation play.

Pleeeease help