I need some help with a more complex button

I know this may sound sort of dumb but I need some help with a button I’m making a basic little game for sort of an inside joke and I need to know how to program a button to goto a certain frame but only after being clicked 3 times

some help would be greatly appreciated!

I wasn’t sure which board to put this in so I’m sorry if this is the wrong place to put this