Create count_down function