import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		int n = sca.nextInt();
		int[] ai = new int[n];
		int[] ans = new int[n];
		for(int i = 1; i < n; i++) {
			ai[i] = sca.nextInt();
			ans[ai[i]-1]++;
		}

		for(int i = 0; i < n; i++) {
			System.out.println(ans[i]);
		}

		// 後始末
		sca.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		int n = sca.nextInt();
		int[] ai = new int[n];
		int[] ans = new int[n];
		for(int i = 1; i < n; i++) {
			ai[i] = sca.nextInt();
			ans[ai[i]-1]++;
		}

		for(int i = 0; i < n; i++) {
			System.out.println(ans[i]);
		}

		// 後始末
		sca.close();
	}
} Main public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		int n = sca.nextInt();
		int[] ai = new int[n];
		int[] ans = new int[n];
		for(int i = 1; i < n; i++) {
			ai[i] = sca.nextInt();
			ans[ai[i]-1]++;
		}

		for(int i = 0; i < n; i++) {
			System.out.println(ans[i]);
		}

		// 後始末
		sca.close();
	} main {
		Scanner sca = new Scanner(System.in);
		int n = sca.nextInt();
		int[] ai = new int[n];
		int[] ans = new int[n];
		for(int i = 1; i < n; i++) {
			ai[i] = sca.nextInt();
			ans[ai[i]-1]++;
		}

		for(int i = 0; i < n; i++) {
			System.out.println(ans[i]);
		}

		// 後始末
		sca.close();
	} Scanner sca = new Scanner(System.in); sca new Scanner(System.in) int n = sca.nextInt(); n sca.nextInt() sca.nextInt sca int[] ai = new int[n]; ai new int[n] n int[] ans = new int[n]; ans new int[n] n for(int i = 1; i < n; i++) {
			ai[i] = sca.nextInt();
			ans[ai[i]-1]++;
		} int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
			ai[i] = sca.nextInt();
			ans[ai[i]-1]++;
		} {
			ai[i] = sca.nextInt();
			ans[ai[i]-1]++;
		} ai[i] = sca.nextInt() ai[i] ai i sca.nextInt() sca.nextInt sca ans[ai[i]-1]++ ans[ai[i]-1] ans ai[i]-1 ai[i] ai i 1 for(int i = 0; i < n; i++) {
			System.out.println(ans[i]);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			System.out.println(ans[i]);
		} {
			System.out.println(ans[i]);
		} System.out.println(ans[i]) System.out.println System.out System System.out ans[i] ans i sca.close() sca.close sca String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		int n = sca.nextInt();
		int[] ai = new int[n];
		int[] ans = new int[n];
		for(int i = 1; i < n; i++) {
			ai[i] = sca.nextInt();
			ans[ai[i]-1]++;
		}

		for(int i = 0; i < n; i++) {
			System.out.println(ans[i]);
		}

		// 後始末
		sca.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		int n = sca.nextInt();
		int[] ai = new int[n];
		int[] ans = new int[n];
		for(int i = 1; i < n; i++) {
			ai[i] = sca.nextInt();
			ans[ai[i]-1]++;
		}

		for(int i = 0; i < n; i++) {
			System.out.println(ans[i]);
		}

		// 後始末
		sca.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sca = new Scanner(System.in);
		int n = sca.nextInt();
		int[] ai = new int[n];
		int[] ans = new int[n];
		for(int i = 1; i < n; i++) {
			ai[i] = sca.nextInt();
			ans[ai[i]-1]++;
		}

		for(int i = 0; i < n; i++) {
			System.out.println(ans[i]);
		}

		// 後始末
		sca.close();
	}
}