input: Write a Python function to determine the number of unique colors on a set of balls after each query. Given an integer limit and a 2D list queries with n pairs, each pair represents marking a ball with a specific color. Return a list indicating the count of distinct colors post each query.
  
  from typing import List
  
  def distinct_colors_count(limit: int, queries: List[List[int]]) -> List[int]:
      """
      You are given an integer limit and a 2D list queries of size n x 2.
  
      Consider there are limit + 1 uniquely labeled balls in the range [0, limit], which start uncolored. Each pair [x, y] in queries represents coloring ball x with color y. After executing each query, you need to count the distinct colors among the balls.
  
      Return a list results of length n, where results[i] indicates the number of different colors after the ith query.
  
      Please note:
      When responding to a query, the absence of color is not regarded as a color.
  
      Examples:
      >>> limit = 4, queries = [[1,4],[2,5],[1,3],[3,4]]
      [1,2,2,3]
      >>> limit = 4, queries = [[0,1],[1,2],[2,2],[3,4],[4,5]]
      [1,2,2,3,4]
  
      Constraints:
      1 <= limit <= 10^9
      1 <= queries.length <= 10^5
      queries[i].length == 2
      0 <= queries[i][0] <= limit
      1 <= queries[i][1] <= 10^9
      """
output: def distinct_colors_count(limit: int, queries: List[List[int]]) -> List[int]:
      color_map = {}
      distinct_colors = set()
      result = []
      
      for x, y in queries:
          color_map[x] = y
          distinct_colors = set(color_map.values())
          result.append(len(distinct_colors))
      
      return result