Python Snippet PPP Q18

Raw Python Snippet (WIP)

# cook your dish here
# problem link ->"https://www.codechef.com/problems/LUCKFOUR"
t = int(input())
for i in range(t):
    a = input()
    print(a.count('4'))