This works by having two cloud variables - number and click. When you click the scratch cat it sets click to 1. A node.js script running on my server receives this event, sets click back to 0 and increments number. No editing of the number cloud variable happens on the client side, as you can clearly see if you click see inside, and by the script count if you don't believe me.