Need help putting in a scoring system

Hi i need help im making a game where your a ball and you have to dodge stakes that are falling down when a stake passes you you get one point so how do you make a scoring system work for this game this is my first ever flash game so i really need help plz.