human
Write a python function that takes in a tuple and an element and counts the occcurences of the element in the tuple. Here is a solution in Python: ... Give me a the Python program you requested?
assistant
#Here is the Python program you requested.
 def count_X(tup, x): 
    count = 0
    for ele in tup: 
        if (ele == x): 
            count = count + 1
    return count