Counting clicks?

I have no idea how to start this. I have 3 bottles and each bottle has a different potion the user must click on the different bottles to create the perfect potion; lets say 2 clicks on the first bottle 1 click on the second and 4 on the the last bottle then it should say something like yes you are correct if the user clicked the correct number of times… I am doing it on flash MX2004 its part of a small game Im doing and I have no idea how to go about this problem, do I count the click?
Please help!

Thanks Marian