They are two separate events, in the first one each time the object is created the variable X increases by 1.
In another event, I'd like you to do a check: "Do this event, only if the X variable has increased compared to before, otherwise don't do it".