def zero_count(nums):
    if not nums:
        return 0
    return sum(1 for x in nums if x == 0) / len(nums)