import java.util.Map.Entry;
import java.util.*;
import java.math.*;
import org.w3c.dom.css.Counter;
  
public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        //モンスターの体力
        //int H = Integer.valueOf(s.next());
        //社員番号
        int N = Integer.valueOf(s.next());
        //部下持ち数
        int[] Ai = new int[N+1];
        Arrays.fill(Ai, 0);
		for(int i = 0; i < N-1; i++) {
            int hoge = Integer.valueOf(s.next());
			Ai[hoge] += 1;
        }
        for(int i = 1; i < Ai.length; i++) {
            System.out.println(Ai[i]);
        }
    }
} import java.util.Map.Entry; Entry java.util.Map import java.util.*; util.* java import java.math.*; math.* java import org.w3c.dom.css.Counter; Counter org.w3c.dom.css public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        //モンスターの体力
        //int H = Integer.valueOf(s.next());
        //社員番号
        int N = Integer.valueOf(s.next());
        //部下持ち数
        int[] Ai = new int[N+1];
        Arrays.fill(Ai, 0);
		for(int i = 0; i < N-1; i++) {
            int hoge = Integer.valueOf(s.next());
			Ai[hoge] += 1;
        }
        for(int i = 1; i < Ai.length; i++) {
            System.out.println(Ai[i]);
        }
    }
} Main public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        //モンスターの体力
        //int H = Integer.valueOf(s.next());
        //社員番号
        int N = Integer.valueOf(s.next());
        //部下持ち数
        int[] Ai = new int[N+1];
        Arrays.fill(Ai, 0);
		for(int i = 0; i < N-1; i++) {
            int hoge = Integer.valueOf(s.next());
			Ai[hoge] += 1;
        }
        for(int i = 1; i < Ai.length; i++) {
            System.out.println(Ai[i]);
        }
    } main {
        Scanner s = new Scanner(System.in);
        //モンスターの体力
        //int H = Integer.valueOf(s.next());
        //社員番号
        int N = Integer.valueOf(s.next());
        //部下持ち数
        int[] Ai = new int[N+1];
        Arrays.fill(Ai, 0);
		for(int i = 0; i < N-1; i++) {
            int hoge = Integer.valueOf(s.next());
			Ai[hoge] += 1;
        }
        for(int i = 1; i < Ai.length; i++) {
            System.out.println(Ai[i]);
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int N = Integer.valueOf(s.next()); N Integer.valueOf(s.next()) Integer.valueOf Integer s.next() s.next s int[] Ai = new int[N+1]; Ai new int[N+1] N+1 N 1 Arrays.fill(Ai, 0) Arrays.fill Arrays Ai 0 for(int i = 0; i < N-1; i++) {
            int hoge = Integer.valueOf(s.next());
			Ai[hoge] += 1;
        } int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
            int hoge = Integer.valueOf(s.next());
			Ai[hoge] += 1;
        } {
            int hoge = Integer.valueOf(s.next());
			Ai[hoge] += 1;
        } int hoge = Integer.valueOf(s.next()); hoge Integer.valueOf(s.next()) Integer.valueOf Integer s.next() s.next s Ai[hoge] += 1 Ai[hoge] Ai hoge 1 for(int i = 1; i < Ai.length; i++) {
            System.out.println(Ai[i]);
        } int i = 1; int i = 1; i 1 i < Ai.length i Ai.length Ai Ai.length i++ i++ i {
            System.out.println(Ai[i]);
        } {
            System.out.println(Ai[i]);
        } System.out.println(Ai[i]) System.out.println System.out System System.out Ai[i] Ai i String[] args args public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        //モンスターの体力
        //int H = Integer.valueOf(s.next());
        //社員番号
        int N = Integer.valueOf(s.next());
        //部下持ち数
        int[] Ai = new int[N+1];
        Arrays.fill(Ai, 0);
		for(int i = 0; i < N-1; i++) {
            int hoge = Integer.valueOf(s.next());
			Ai[hoge] += 1;
        }
        for(int i = 1; i < Ai.length; i++) {
            System.out.println(Ai[i]);
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        //モンスターの体力
        //int H = Integer.valueOf(s.next());
        //社員番号
        int N = Integer.valueOf(s.next());
        //部下持ち数
        int[] Ai = new int[N+1];
        Arrays.fill(Ai, 0);
		for(int i = 0; i < N-1; i++) {
            int hoge = Integer.valueOf(s.next());
			Ai[hoge] += 1;
        }
        for(int i = 1; i < Ai.length; i++) {
            System.out.println(Ai[i]);
        }
    }
} Main
import java.util.Map.Entry;
import java.util.*;
import java.math.*;
import org.w3c.dom.css.Counter;
  
public class Main{
    public static void main(String[] args){
        Scanner s = new Scanner(System.in);
        //モンスターの体力
        //int H = Integer.valueOf(s.next());
        //社員番号
        int N = Integer.valueOf(s.next());
        //部下持ち数
        int[] Ai = new int[N+1];
        Arrays.fill(Ai, 0);
		for(int i = 0; i < N-1; i++) {
            int hoge = Integer.valueOf(s.next());
			Ai[hoge] += 1;
        }
        for(int i = 1; i < Ai.length; i++) {
            System.out.println(Ai[i]);
        }
    }
}