A utility to implement count down timer