Hit detection for gaming

I am making a game and I want to make it so that if something get’s hit 3 times than it jumps to a new frame. This is a pong type game and so I want it so that there is a boss who gets hit three times then a movie clip with flowers comes out. If anyone has scripting that can help I will be really, really happy.
Roxy Gurl:)