Making of LLemMings

Resource counter


Given the following div:

Make it so that there is a small (as in font-size) number in the upper right corner of each button.

The number is dynamically updated every time the action is used. I will need the CSS, HTML and the javascript I need to perform in applyAction().