Countdown in game help

In my game (actionscript 3) i want it to be so there is a timer that counts down and when it gets to zero it sends you to a lose screen like gotoAndPlay(“lose”); (i know, thats actionscript 2)

how do i make and show this countdown? and then make it go to the lose screen?

thank you
-Joey