How to add "credits" (like arcade game) whenever insert coin is pressed?

any binding functions?