you do increase the variable +1.
so to figure it out, set a console log or rather a warn.
console.warn("you clicked", $gameVariable.value(25), "x times")
or change warn to error (which I think it pop up on the on a window.
set both inside the success and on FAIL to see if it triggers.
what happens if you don't press OK?
also, you can also change that line to: Input.isTriggered("ok") instead
as if you use press (if can be hold down to speed it up to 9+.
Rather than checking if the button is pressed down, you should probably check if the button was triggered. Input.isPressed('ok') checks if the button is currently being held down, but
Input.isTriggered('ok') checks if the button is down this frame, but was up last frame. That way the player can't just keep holding the button, and you won't get it counting more than once if it just whizzes through the loop multiple times in a single button press. Just change your conditional branch to be
Script: Input.isTriggered('ok')
instead of
Button: [OK] is pressed down