from collections import Counter



n=int(eval(input()))

a=list(map(int,input().split()))



c=Counter(a)



for i in range(1,n+1):

  print((c[i]))
from sys import stdin

nii=lambda:list(map(int,stdin.readline().split()))

lnii=lambda:list(map(int,stdin.readline().split()))



n=int(eval(input()))

a=lnii()



ans=[0 for i in range(n)]



for i in a:

  i-=1

  ans[i]+=1



for i in ans:

  print(i)
from collections import Counter

n = int(eval(input()))
a = list(map(int, input().split()))
c = Counter(a)
for i in range(1, n + 1):
    print((c[i]))

from sys import stdin

nii = lambda: list(map(int, stdin.readline().split()))
lnii = lambda: list(map(int, stdin.readline().split()))
n = int(eval(input()))
a = lnii()
ans = [0 for i in range(n)]
for i in a:
    i -= 1
    ans[i] += 1
for i in ans:
    print(i)

-from collections import Counter +from sys import stdin +nii = lambda: list(map(int, stdin.readline().split())) +lnii = lambda: list(map(int, stdin.readline().split())) -a = list(map(int, input().split())) -c = Counter(a) -for i in range(1, n + 1): -    print((c[i])) +a = lnii() +ans = [0 for i in range(n)] +for i in a: +    i -= 1 +    ans[i] += 1 +for i in ans: +    print(i)