# Program to count the number of times an element 
# Present in the list 
def countX(tup, x): 
	count = 0
	for ele in tup: 
		if (ele == x): 
			count = count + 1
	return count 

# Driver Code 
tup = (10, 8, 5, 2, 10, 15, 10, 8, 5, 8, 8, 2) 
enq = 4
enq1 = 10
enq2 = 8
print(countX(tup, enq)) 
print(countX(tup, enq1)) 
print(countX(tup, enq2)) 
