instead of subtracting by 1, technically you would have the ON START event increment your variable, and the ON LOAD decrement it. The START/LOAD events offset each other whenever the script is loaded, then all that remains is the count of mirc startups.