import java.util.*;
import java.io.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int n = Integer.parseInt(sc.next());
		int[] q = new int[n];
		Arrays.fill(q , 0);
		for(int i = 1 ; i < n ; i++){
			q[Integer.parseInt(sc.next()) - 1]++;
		}
		sc.close();
		for(int i = 0 ; i < n ; i++){
			ou.print(q[i] + "\n");
		}
		ou.flush();
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int n = Integer.parseInt(sc.next());
		int[] q = new int[n];
		Arrays.fill(q , 0);
		for(int i = 1 ; i < n ; i++){
			q[Integer.parseInt(sc.next()) - 1]++;
		}
		sc.close();
		for(int i = 0 ; i < n ; i++){
			ou.print(q[i] + "\n");
		}
		ou.flush();
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int n = Integer.parseInt(sc.next());
		int[] q = new int[n];
		Arrays.fill(q , 0);
		for(int i = 1 ; i < n ; i++){
			q[Integer.parseInt(sc.next()) - 1]++;
		}
		sc.close();
		for(int i = 0 ; i < n ; i++){
			ou.print(q[i] + "\n");
		}
		ou.flush();
	} main {
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int n = Integer.parseInt(sc.next());
		int[] q = new int[n];
		Arrays.fill(q , 0);
		for(int i = 1 ; i < n ; i++){
			q[Integer.parseInt(sc.next()) - 1]++;
		}
		sc.close();
		for(int i = 0 ; i < n ; i++){
			ou.print(q[i] + "\n");
		}
		ou.flush();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter ou = new PrintWriter(System.out); ou new PrintWriter(System.out) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] q = new int[n]; q new int[n] n Arrays.fill(q , 0) Arrays.fill Arrays q 0 for(int i = 1 ; i < n ; i++){
			q[Integer.parseInt(sc.next()) - 1]++;
		} int i = 1 ; int i = 1 ; i 1 i < n i n i++ i++ i {
			q[Integer.parseInt(sc.next()) - 1]++;
		} {
			q[Integer.parseInt(sc.next()) - 1]++;
		} q[Integer.parseInt(sc.next()) - 1]++ q[Integer.parseInt(sc.next()) - 1] q Integer.parseInt(sc.next()) - 1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc 1 sc.close() sc.close sc for(int i = 0 ; i < n ; i++){
			ou.print(q[i] + "\n");
		} int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
			ou.print(q[i] + "\n");
		} {
			ou.print(q[i] + "\n");
		} ou.print(q[i] + "\n") ou.print ou q[i] + "\n" q[i] q i "\n" ou.flush() ou.flush ou String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int n = Integer.parseInt(sc.next());
		int[] q = new int[n];
		Arrays.fill(q , 0);
		for(int i = 1 ; i < n ; i++){
			q[Integer.parseInt(sc.next()) - 1]++;
		}
		sc.close();
		for(int i = 0 ; i < n ; i++){
			ou.print(q[i] + "\n");
		}
		ou.flush();
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int n = Integer.parseInt(sc.next());
		int[] q = new int[n];
		Arrays.fill(q , 0);
		for(int i = 1 ; i < n ; i++){
			q[Integer.parseInt(sc.next()) - 1]++;
		}
		sc.close();
		for(int i = 0 ; i < n ; i++){
			ou.print(q[i] + "\n");
		}
		ou.flush();
	}
} Main
import java.util.*;
import java.io.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int n = Integer.parseInt(sc.next());
		int[] q = new int[n];
		Arrays.fill(q , 0);
		for(int i = 1 ; i < n ; i++){
			q[Integer.parseInt(sc.next()) - 1]++;
		}
		sc.close();
		for(int i = 0 ; i < n ; i++){
			ou.print(q[i] + "\n");
		}
		ou.flush();
	}
}