#Count the number 4 in a given list
#!/usr/bin/python
def list_count_4(nums):
    count = 0 
    for num in nums: 
       if num == 4:
         count = count + 1 
    return count 

print(list_count_4([1,4,6,7,4]))

