# Write a Python program to Count tuples occurrence in list of tuples # Python code to count unique # tuples in list of list  import collections Output = collections.defaultdict(int)  # List initializationInput = [[('hi', 'bye')], [('Geeks', 'forGeeks')],         [('a', 'b')], [('hi', 'bye')], [('a', 'b')]]  # Using iterationfor elem in Input:      Output[elem[0]] += 1      # Printing outputprint(Output)