Question: 
Write a python function to count the occurence of all elements of list in a tuple.


Model's Code:
def count_Occurrence(tup, lst):
    return sum(tup.count(x) for x in lst)



Sample Correct Code:
from collections import Counter 
def count_Occurrence(tup, lst): 
    count = 0
    for item in tup: 
        if item in lst: 
            count+= 1 
    return count  


Asserts:
assert count_Occurrence(('a', 'a', 'c', 'b', 'd'),['a', 'b'] ) == 3
assert count_Occurrence((1, 2, 3, 1, 4, 6, 7, 1, 4),[1, 4, 7]) == 6
assert count_Occurrence((1,2,3,4,5,6),[1,2]) == 2


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 446 of 974: 324/446 (72.6457399103139%): success