output_description: For each of the members numbered 1, 2, ..., N, print the number of immediate
  subordinates it has, in its own line.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
      A_2 ... A_N
attempt: # C
  
  # デバッグ
  debug = 1
  
  
  def pront(*n):
      if debug == 1:
          print(n)
  
  
  # 10**9+7を底とした処理
  
  base = 10**9 + 7
  
  
  def add(a, b):  # a+b
      return (a + b) % base
  
  
  def sub(a, b):  # a-b
      return (a - b) % base
  
  
  def multi(a, b):  # a*b
      return (a * b) % base
  
  
  def exp(a, b):  # a**b
      x = 1
      c = a
      d = b
      while d != 0:
          if d % 2 == 1:
              x = multi(x, c)
          c = (c**2) % base
          d = d // 2
      return x
  
  
  def div(a, b):  # a/b
      return multi(a, exp(b, base - 2))
  
  
  # 入力
  N = int(input())
  A = list(map(int, input().split()))
  
  # 処理
  X = {}
  
  for i in range(1, N + 1):
      X[i] = 0
  
  for i in range(N + 1):
      if i == 0 or i == 1:
          continue
      if i in X:
          X[A[i - 2]] += 1
      else:
          X[A[i - 2]] = 1
  
  for i in X.values():
      print(i)
  
problem_description: Statement
  
  A company has N members, who are assigned ID numbers 1, ..., N.
  
  Every member, except the member numbered 1, has exactly one immediate boss
  with a smaller ID number.
  
  When a person X is the immediate boss of a person Y, the person Y is said to
  be an immediate subordinate of the person X.
  
  You are given the information that the immediate boss of the member numbered i
  is the member numbered A_i. For each member, find how many immediate
  subordinates it has.
samples: [{"input": "5\n    1 1 2 2", "output": "2\n    2\n    0\n    0\n    0\n    \n\nThe member numbered 1 has two immediate subordinates: the members numbered 2\nand 3.\n\nThe member numbered 2 has two immediate subordinates: the members numbered 4\nand 5.\n\nThe members numbered 3, 4, and 5 do not have immediate subordinates.\n\n* * *"}, {"input": "10\n    1 1 1 1 1 1 1 1 1", "output": "9\n    0\n    0\n    0\n    0\n    0\n    0\n    0\n    0\n    0\n    \n\n* * *"}, {"input": "7\n    1 2 3 4 5 6", "output": "1\n    1\n    1\n    1\n    1\n    1\n    0"}]