import java.util.Scanner;

public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int member_count = sc.nextInt();

		int boss [] = new int[member_count];
		int assistant [] = new int[member_count];

		for (int i = 0; i < member_count; i++) {
			assistant[i] = 0;
		}

		for (int i = 1; i < member_count; i++) {
			boss[i] = sc.nextInt();
			assistant[boss[i] - 1]++;
		}

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

	return;

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int member_count = sc.nextInt();

		int boss [] = new int[member_count];
		int assistant [] = new int[member_count];

		for (int i = 0; i < member_count; i++) {
			assistant[i] = 0;
		}

		for (int i = 1; i < member_count; i++) {
			boss[i] = sc.nextInt();
			assistant[boss[i] - 1]++;
		}

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

	return;

	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int member_count = sc.nextInt();

		int boss [] = new int[member_count];
		int assistant [] = new int[member_count];

		for (int i = 0; i < member_count; i++) {
			assistant[i] = 0;
		}

		for (int i = 1; i < member_count; i++) {
			boss[i] = sc.nextInt();
			assistant[boss[i] - 1]++;
		}

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

	return;

	} main {

		Scanner sc = new Scanner(System.in);

		int member_count = sc.nextInt();

		int boss [] = new int[member_count];
		int assistant [] = new int[member_count];

		for (int i = 0; i < member_count; i++) {
			assistant[i] = 0;
		}

		for (int i = 1; i < member_count; i++) {
			boss[i] = sc.nextInt();
			assistant[boss[i] - 1]++;
		}

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

	return;

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int member_count = sc.nextInt(); member_count sc.nextInt() sc.nextInt sc int boss [] = new int[member_count]; boss new int[member_count] member_count int assistant [] = new int[member_count]; assistant new int[member_count] member_count for (int i = 0; i < member_count; i++) {
			assistant[i] = 0;
		} int i = 0; int i = 0; i 0 i < member_count i member_count i++ i++ i {
			assistant[i] = 0;
		} {
			assistant[i] = 0;
		} assistant[i] = 0 assistant[i] assistant i 0 for (int i = 1; i < member_count; i++) {
			boss[i] = sc.nextInt();
			assistant[boss[i] - 1]++;
		} int i = 1; int i = 1; i 1 i < member_count i member_count i++ i++ i {
			boss[i] = sc.nextInt();
			assistant[boss[i] - 1]++;
		} {
			boss[i] = sc.nextInt();
			assistant[boss[i] - 1]++;
		} boss[i] = sc.nextInt() boss[i] boss i sc.nextInt() sc.nextInt sc assistant[boss[i] - 1]++ assistant[boss[i] - 1] assistant boss[i] - 1 boss[i] boss i 1 for (int i = 0; i < member_count; i++) {
			System.out.println(assistant[i]);
		} int i = 0; int i = 0; i 0 i < member_count i member_count i++ i++ i {
			System.out.println(assistant[i]);
		} {
			System.out.println(assistant[i]);
		} System.out.println(assistant[i]) System.out.println System.out System System.out assistant[i] assistant i return; String[] args args public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int member_count = sc.nextInt();

		int boss [] = new int[member_count];
		int assistant [] = new int[member_count];

		for (int i = 0; i < member_count; i++) {
			assistant[i] = 0;
		}

		for (int i = 1; i < member_count; i++) {
			boss[i] = sc.nextInt();
			assistant[boss[i] - 1]++;
		}

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

	return;

	}
} public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int member_count = sc.nextInt();

		int boss [] = new int[member_count];
		int assistant [] = new int[member_count];

		for (int i = 0; i < member_count; i++) {
			assistant[i] = 0;
		}

		for (int i = 1; i < member_count; i++) {
			boss[i] = sc.nextInt();
			assistant[boss[i] - 1]++;
		}

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

	return;

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int member_count = sc.nextInt();

		int boss [] = new int[member_count];
		int assistant [] = new int[member_count];

		for (int i = 0; i < member_count; i++) {
			assistant[i] = 0;
		}

		for (int i = 1; i < member_count; i++) {
			boss[i] = sc.nextInt();
			assistant[boss[i] - 1]++;
		}

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

	return;

	}
}
