How would I create a decrease timer function used in this video?

Here are some screenshots