Does anyone know how to create a countdown (Player can see it) that will end the game when it reaches zero?

Does anyone know how to create a countdown (top of player’s screen) that will end the game when it reaches zero?

This is not my video, but a quick search on Youtube.