def timer(time):
    """
    A timer function.
    - input:
        - time of counting down
    """
    timer = int(timer)
    for i in range(timer):
        print(timer)
        time.sleep(1)
        timer -= 1
