import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.next());
		List<Integer> empList = new ArrayList<>();
		empList.add(0);
		for (int i = 1; i < num; i++) {
			empList.add(0);
			int bossNum = Integer.parseInt(sc.next());
			empList.set(bossNum - 1, empList.get(bossNum - 1) + 1);

		}
		for (int i = 0; i < empList.size(); i++) {
			System.out.println(empList.get(i));
		}
	}

} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.next());
		List<Integer> empList = new ArrayList<>();
		empList.add(0);
		for (int i = 1; i < num; i++) {
			empList.add(0);
			int bossNum = Integer.parseInt(sc.next());
			empList.set(bossNum - 1, empList.get(bossNum - 1) + 1);

		}
		for (int i = 0; i < empList.size(); i++) {
			System.out.println(empList.get(i));
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.next());
		List<Integer> empList = new ArrayList<>();
		empList.add(0);
		for (int i = 1; i < num; i++) {
			empList.add(0);
			int bossNum = Integer.parseInt(sc.next());
			empList.set(bossNum - 1, empList.get(bossNum - 1) + 1);

		}
		for (int i = 0; i < empList.size(); i++) {
			System.out.println(empList.get(i));
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.next());
		List<Integer> empList = new ArrayList<>();
		empList.add(0);
		for (int i = 1; i < num; i++) {
			empList.add(0);
			int bossNum = Integer.parseInt(sc.next());
			empList.set(bossNum - 1, empList.get(bossNum - 1) + 1);

		}
		for (int i = 0; i < empList.size(); i++) {
			System.out.println(empList.get(i));
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = Integer.parseInt(sc.next()); num Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> empList = new ArrayList<>(); empList new ArrayList<>() empList.add(0) empList.add empList 0 for (int i = 1; i < num; i++) {
			empList.add(0);
			int bossNum = Integer.parseInt(sc.next());
			empList.set(bossNum - 1, empList.get(bossNum - 1) + 1);

		} int i = 1; int i = 1; i 1 i < num i num i++ i++ i {
			empList.add(0);
			int bossNum = Integer.parseInt(sc.next());
			empList.set(bossNum - 1, empList.get(bossNum - 1) + 1);

		} {
			empList.add(0);
			int bossNum = Integer.parseInt(sc.next());
			empList.set(bossNum - 1, empList.get(bossNum - 1) + 1);

		} empList.add(0) empList.add empList 0 int bossNum = Integer.parseInt(sc.next()); bossNum Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc empList.set(bossNum - 1, empList.get(bossNum - 1) + 1) empList.set empList bossNum - 1 bossNum 1 empList.get(bossNum - 1) + 1 empList.get(bossNum - 1) empList.get empList bossNum - 1 bossNum 1 1 for (int i = 0; i < empList.size(); i++) {
			System.out.println(empList.get(i));
		} int i = 0; int i = 0; i 0 i < empList.size() i empList.size() empList.size empList i++ i++ i {
			System.out.println(empList.get(i));
		} {
			System.out.println(empList.get(i));
		} System.out.println(empList.get(i)) System.out.println System.out System System.out empList.get(i) empList.get empList i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.next());
		List<Integer> empList = new ArrayList<>();
		empList.add(0);
		for (int i = 1; i < num; i++) {
			empList.add(0);
			int bossNum = Integer.parseInt(sc.next());
			empList.set(bossNum - 1, empList.get(bossNum - 1) + 1);

		}
		for (int i = 0; i < empList.size(); i++) {
			System.out.println(empList.get(i));
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.next());
		List<Integer> empList = new ArrayList<>();
		empList.add(0);
		for (int i = 1; i < num; i++) {
			empList.add(0);
			int bossNum = Integer.parseInt(sc.next());
			empList.set(bossNum - 1, empList.get(bossNum - 1) + 1);

		}
		for (int i = 0; i < empList.size(); i++) {
			System.out.println(empList.get(i));
		}
	}

} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = Integer.parseInt(sc.next());
		List<Integer> empList = new ArrayList<>();
		empList.add(0);
		for (int i = 1; i < num; i++) {
			empList.add(0);
			int bossNum = Integer.parseInt(sc.next());
			empList.set(bossNum - 1, empList.get(bossNum - 1) + 1);

		}
		for (int i = 0; i < empList.size(); i++) {
			System.out.println(empList.get(i));
		}
	}

}
