method for countdown