def positive_count(nums):
    if not nums:
        return 0
    return sum(1 for n in nums if n > 0) / len(nums)