Given a list of integers, write a Python program to count the number of 0s in the list.
def count_zeros(list):
    count = 0
    for num in list:
        if num == 0:
            count += 1
    return count