import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
        int t= Integer.parseInt(reader.readLine());

        String[] s=reader.readLine().split(" ");
        int[] num=new int[t+t];

        for (int i = 0; i <s.length ; i++) {
            num[Integer.parseInt(s[i])]++;
        }
        for (int i = 1; i <=t ; i++) {
            System.out.println(num[i]);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.HashSet; HashSet java.util import java.util.Set; Set java.util public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
        int t= Integer.parseInt(reader.readLine());

        String[] s=reader.readLine().split(" ");
        int[] num=new int[t+t];

        for (int i = 0; i <s.length ; i++) {
            num[Integer.parseInt(s[i])]++;
        }
        for (int i = 1; i <=t ; i++) {
            System.out.println(num[i]);
        }
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
        int t= Integer.parseInt(reader.readLine());

        String[] s=reader.readLine().split(" ");
        int[] num=new int[t+t];

        for (int i = 0; i <s.length ; i++) {
            num[Integer.parseInt(s[i])]++;
        }
        for (int i = 1; i <=t ; i++) {
            System.out.println(num[i]);
        }
    } main {
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
        int t= Integer.parseInt(reader.readLine());

        String[] s=reader.readLine().split(" ");
        int[] num=new int[t+t];

        for (int i = 0; i <s.length ; i++) {
            num[Integer.parseInt(s[i])]++;
        }
        for (int i = 1; i <=t ; i++) {
            System.out.println(num[i]);
        }
    } BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int t= Integer.parseInt(reader.readLine()); t Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader String[] s=reader.readLine().split(" "); s reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int[] num=new int[t+t]; num new int[t+t] t+t t t for (int i = 0; i <s.length ; i++) {
            num[Integer.parseInt(s[i])]++;
        } int i = 0; int i = 0; i 0 i <s.length i s.length s s.length i++ i++ i {
            num[Integer.parseInt(s[i])]++;
        } {
            num[Integer.parseInt(s[i])]++;
        } num[Integer.parseInt(s[i])]++ num[Integer.parseInt(s[i])] num Integer.parseInt(s[i]) Integer.parseInt Integer s[i] s i for (int i = 1; i <=t ; i++) {
            System.out.println(num[i]);
        } int i = 1; int i = 1; i 1 i <=t i t i++ i++ i {
            System.out.println(num[i]);
        } {
            System.out.println(num[i]);
        } System.out.println(num[i]) System.out.println System.out System System.out num[i] num i String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
        int t= Integer.parseInt(reader.readLine());

        String[] s=reader.readLine().split(" ");
        int[] num=new int[t+t];

        for (int i = 0; i <s.length ; i++) {
            num[Integer.parseInt(s[i])]++;
        }
        for (int i = 1; i <=t ; i++) {
            System.out.println(num[i]);
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
        int t= Integer.parseInt(reader.readLine());

        String[] s=reader.readLine().split(" ");
        int[] num=new int[t+t];

        for (int i = 0; i <s.length ; i++) {
            num[Integer.parseInt(s[i])]++;
        }
        for (int i = 1; i <=t ; i++) {
            System.out.println(num[i]);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
        int t= Integer.parseInt(reader.readLine());

        String[] s=reader.readLine().split(" ");
        int[] num=new int[t+t];

        for (int i = 0; i <s.length ; i++) {
            num[Integer.parseInt(s[i])]++;
        }
        for (int i = 1; i <=t ; i++) {
            System.out.println(num[i]);
        }
    }
}