input: Write a python function that takes an integer, size, and a list of lists, operations, where each sub-list contains two integers. Initially there are size+1 balls, each with unique labels in the range [0, size], and all of the balls are uncolored. Each sub-list in operations represents marking a ball with a certain color. After processing each operation, the function should return the count of distinct colors present on the balls.
  
  Return a list where each element represents the number of distinct colors after the corresponding operation in operations.
  
  Note that if a color is not present on any ball, it should not be considered as a distinct color.
output: def countDistinctColors(size, operations):
      labeled_balls = [None] * (size + 1)
      result = []
      distinct_colors = set()
      for ball, color in operations:
          if labeled_balls[ball] is not None:
              distinct_colors.discard(labeled_balls[ball])
          labeled_balls[ball] = color
          distinct_colors.add(color)
          result.append(len(distinct_colors))
      return result