Demo: robust script event when slider resets
a's "On Update" script is:
SetValue(flag, a<aOld)
If(flag, SetValue(count, count+1))
SetValue(aOld, a)
SetValue(flag, a<aOld)
If(flag, SetValue(count, count+1))
SetValue(aOld, a)