I really just can't understand why this code is not working... It's probably just a typo. But even my more experienced friend is stumped here. The prompt is simply "write a program that tells you how many 4s there are in a given list." Its all working except that count says zero no matter how many 4s I submit.
def num_four(number_list): 
    count = 0
    print number_list
    for i in number_list:
        print i
        if i == 4:  
            count = count + 1
    return count
number_list = raw_input("Enter list of integers here: ")
print num_four(number_list)
the output looks like this:
Enter list of integers here: 123444
123444
1
2
3
4
4
4
0
 
     
     
     
    