import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		String l = sc.nextLine();
		Integer N = Integer.valueOf(l);
		l = sc.nextLine();
		String[] arr = l.split(" ");
		
		StringBuilder sb = new StringBuilder();
		int[] boss = new int[arr.length + 1];
		int[] result = new int[N+1];
		
		int count = 1;
		for(String s : arr) {
			result[Integer.valueOf(s)]++;
			
		}
		for (int i = 1; i < result.length; i++) {
			sb.append(result[i]+"\n");
		}
		sc.close();
		System.out.println(sb.toString());
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		String l = sc.nextLine();
		Integer N = Integer.valueOf(l);
		l = sc.nextLine();
		String[] arr = l.split(" ");
		
		StringBuilder sb = new StringBuilder();
		int[] boss = new int[arr.length + 1];
		int[] result = new int[N+1];
		
		int count = 1;
		for(String s : arr) {
			result[Integer.valueOf(s)]++;
			
		}
		for (int i = 1; i < result.length; i++) {
			sb.append(result[i]+"\n");
		}
		sc.close();
		System.out.println(sb.toString());
	}
} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		String l = sc.nextLine();
		Integer N = Integer.valueOf(l);
		l = sc.nextLine();
		String[] arr = l.split(" ");
		
		StringBuilder sb = new StringBuilder();
		int[] boss = new int[arr.length + 1];
		int[] result = new int[N+1];
		
		int count = 1;
		for(String s : arr) {
			result[Integer.valueOf(s)]++;
			
		}
		for (int i = 1; i < result.length; i++) {
			sb.append(result[i]+"\n");
		}
		sc.close();
		System.out.println(sb.toString());
	} main {
		
		Scanner sc = new Scanner(System.in);
		String l = sc.nextLine();
		Integer N = Integer.valueOf(l);
		l = sc.nextLine();
		String[] arr = l.split(" ");
		
		StringBuilder sb = new StringBuilder();
		int[] boss = new int[arr.length + 1];
		int[] result = new int[N+1];
		
		int count = 1;
		for(String s : arr) {
			result[Integer.valueOf(s)]++;
			
		}
		for (int i = 1; i < result.length; i++) {
			sb.append(result[i]+"\n");
		}
		sc.close();
		System.out.println(sb.toString());
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String l = sc.nextLine(); l sc.nextLine() sc.nextLine sc Integer N = Integer.valueOf(l); N Integer.valueOf(l) Integer.valueOf Integer l l = sc.nextLine() l sc.nextLine() sc.nextLine sc String[] arr = l.split(" "); arr l.split(" ") l.split l " " StringBuilder sb = new StringBuilder(); sb new StringBuilder() int[] boss = new int[arr.length + 1]; boss new int[arr.length + 1] arr.length + 1 arr.length arr arr.length 1 int[] result = new int[N+1]; result new int[N+1] N+1 N 1 int count = 1; count 1 for(String s : arr) {
			result[Integer.valueOf(s)]++;
			
		} String s arr {
			result[Integer.valueOf(s)]++;
			
		} {
			result[Integer.valueOf(s)]++;
			
		} result[Integer.valueOf(s)]++ result[Integer.valueOf(s)] result Integer.valueOf(s) Integer.valueOf Integer s for (int i = 1; i < result.length; i++) {
			sb.append(result[i]+"\n");
		} int i = 1; int i = 1; i 1 i < result.length i result.length result result.length i++ i++ i {
			sb.append(result[i]+"\n");
		} {
			sb.append(result[i]+"\n");
		} sb.append(result[i]+"\n") sb.append sb result[i]+"\n" result[i] result i "\n" sc.close() sc.close sc System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		String l = sc.nextLine();
		Integer N = Integer.valueOf(l);
		l = sc.nextLine();
		String[] arr = l.split(" ");
		
		StringBuilder sb = new StringBuilder();
		int[] boss = new int[arr.length + 1];
		int[] result = new int[N+1];
		
		int count = 1;
		for(String s : arr) {
			result[Integer.valueOf(s)]++;
			
		}
		for (int i = 1; i < result.length; i++) {
			sb.append(result[i]+"\n");
		}
		sc.close();
		System.out.println(sb.toString());
	}
} public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		String l = sc.nextLine();
		Integer N = Integer.valueOf(l);
		l = sc.nextLine();
		String[] arr = l.split(" ");
		
		StringBuilder sb = new StringBuilder();
		int[] boss = new int[arr.length + 1];
		int[] result = new int[N+1];
		
		int count = 1;
		for(String s : arr) {
			result[Integer.valueOf(s)]++;
			
		}
		for (int i = 1; i < result.length; i++) {
			sb.append(result[i]+"\n");
		}
		sc.close();
		System.out.println(sb.toString());
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		String l = sc.nextLine();
		Integer N = Integer.valueOf(l);
		l = sc.nextLine();
		String[] arr = l.split(" ");
		
		StringBuilder sb = new StringBuilder();
		int[] boss = new int[arr.length + 1];
		int[] result = new int[N+1];
		
		int count = 1;
		for(String s : arr) {
			result[Integer.valueOf(s)]++;
			
		}
		for (int i = 1; i < result.length; i++) {
			sb.append(result[i]+"\n");
		}
		sc.close();
		System.out.println(sb.toString());
	}
}