Count Occurrences in Tuple

Write a function count_occurrences that takes a tuple and an element. The function should return the number of times the element appears in the tuple.
Python
Setting up Python environment...
Output