Replace the for-loop in the following Python function with an equivalent while loop.
def count_down(value):
    ret = 1
    for i in range(value, 0, -1):
        ret *= i
    return ret
def count_down(value):
    ret = 1
    while value > 0:
        ret *= value
        value -= 1
    return ret