Here is a link to a .pdf of a set of Powerpoint slides that describe how to create a scoreboard from an Alice text object (I am assuming you are working in Alice 2 - let me know if you need this information for Alice 3, although the principles are very close, or if you have problems with the link).
https://www.dropbox.com/s/tjhim81gku...rd%20.pdf?dl=0
In the slides, the score is increased when the cow is clicked on with the mouse. In your case, you would increase the score when a correct answer is given in the if statement.
Let me know if you have any other questions.
Don Slater
Alice Project
don@alice.org