input: Write a Python function that counts the occurrences of each tuple in a given list of tuples and appends the frequency to each unique tuple.
  assert count_tuple_freq([(6, 5, 8), (2, 7), (6, 5, 8), (6, 5, 8), (9, ), (2, 7)] ) == '[(6, 5, 8, 3), (2, 7, 2), (9, 1)]'
  assert count_tuple_freq([(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 count_tuple_freq([(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 count_tuple_freq(tuples_list):
      from collections import Counter
      counter = Counter(tuples_list)
      unique_tuples = list(dict.fromkeys(tuples_list))
      result = [t + (counter[t],) for t in unique_tuples]
      return str(result)