input: Write a python function that counts the occurrences of each tuple in a provided list and includes this frequency in the tuples themselves.
  assert tuple_frequencies([(6, 5, 8), (2, 7), (6, 5, 8), (6, 5, 8), (9, ), (2, 7)] ) == '[(6, 5, 8, 3), (2, 7, 2), (9, 1)]'
  assert tuple_frequencies([(4, 2, 4), (7, 1), (4, 8), (4, 2, 4), (9, 2), (7, 1)] ) == '[(4, 2, 4, 2), (7, 1, 2), (4, 8, 1), (9, 2, 1)]'
  assert tuple_frequencies([(11, 13, 10), (17, 21), (4, 2, 3), (17, 21), (9, 2), (4, 2, 3)] ) == '[(11, 13, 10, 1), (17, 21, 2), (4, 2, 3, 2), (9, 2, 1)]'
output: def tuple_frequencies(lst):
      from collections import Counter
      count = Counter(lst)
      result = []
      seen = set()
      for t in lst:
          if t not in seen:
              seen.add(t)
              result.append(t + (count[t],))
      return str(result)