State Changes twice or X times?

I would use a variable. Do a search here.