import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());
        String s = reader.readLine();
        String[] inp = s.split(" ");

        int[] arr = new int[n-1];

        for (int i = 0; i < inp.length; i++) {
            arr[i]=Integer.parseInt(inp[i]);
        }

        int[] countarr = new int[n];

        for (int i = 0; i < arr.length; i++) {
            //System.out.print(i+" ");
            int val = arr[i]-1  ;
            //System.out.println(val);
            countarr[val]++;
        }

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

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());
        String s = reader.readLine();
        String[] inp = s.split(" ");

        int[] arr = new int[n-1];

        for (int i = 0; i < inp.length; i++) {
            arr[i]=Integer.parseInt(inp[i]);
        }

        int[] countarr = new int[n];

        for (int i = 0; i < arr.length; i++) {
            //System.out.print(i+" ");
            int val = arr[i]-1  ;
            //System.out.println(val);
            countarr[val]++;
        }

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

    }
} Main public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());
        String s = reader.readLine();
        String[] inp = s.split(" ");

        int[] arr = new int[n-1];

        for (int i = 0; i < inp.length; i++) {
            arr[i]=Integer.parseInt(inp[i]);
        }

        int[] countarr = new int[n];

        for (int i = 0; i < arr.length; i++) {
            //System.out.print(i+" ");
            int val = arr[i]-1  ;
            //System.out.println(val);
            countarr[val]++;
        }

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

    } main {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());
        String s = reader.readLine();
        String[] inp = s.split(" ");

        int[] arr = new int[n-1];

        for (int i = 0; i < inp.length; i++) {
            arr[i]=Integer.parseInt(inp[i]);
        }

        int[] countarr = new int[n];

        for (int i = 0; i < arr.length; i++) {
            //System.out.print(i+" ");
            int val = arr[i]-1  ;
            //System.out.println(val);
            countarr[val]++;
        }

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

    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(reader.readLine()); n Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader String s = reader.readLine(); s reader.readLine() reader.readLine reader String[] inp = s.split(" "); inp s.split(" ") s.split s " " int[] arr = new int[n-1]; arr new int[n-1] n-1 n 1 for (int i = 0; i < inp.length; i++) {
            arr[i]=Integer.parseInt(inp[i]);
        } int i = 0; int i = 0; i 0 i < inp.length i inp.length inp inp.length i++ i++ i {
            arr[i]=Integer.parseInt(inp[i]);
        } {
            arr[i]=Integer.parseInt(inp[i]);
        } arr[i]=Integer.parseInt(inp[i]) arr[i] arr i Integer.parseInt(inp[i]) Integer.parseInt Integer inp[i] inp i int[] countarr = new int[n]; countarr new int[n] n for (int i = 0; i < arr.length; i++) {
            //System.out.print(i+" ");
            int val = arr[i]-1  ;
            //System.out.println(val);
            countarr[val]++;
        } int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i {
            //System.out.print(i+" ");
            int val = arr[i]-1  ;
            //System.out.println(val);
            countarr[val]++;
        } {
            //System.out.print(i+" ");
            int val = arr[i]-1  ;
            //System.out.println(val);
            countarr[val]++;
        } int val = arr[i]-1  ; val arr[i]-1 arr[i] arr i 1 countarr[val]++ countarr[val] countarr val for (int i = 0; i <countarr.length ; i++) {
            System.out.println(countarr[i]);
        } int i = 0; int i = 0; i 0 i <countarr.length i countarr.length countarr countarr.length i++ i++ i {
            System.out.println(countarr[i]);
        } {
            System.out.println(countarr[i]);
        } System.out.println(countarr[i]) System.out.println System.out System System.out countarr[i] countarr i String[] args args public class Main{

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());
        String s = reader.readLine();
        String[] inp = s.split(" ");

        int[] arr = new int[n-1];

        for (int i = 0; i < inp.length; i++) {
            arr[i]=Integer.parseInt(inp[i]);
        }

        int[] countarr = new int[n];

        for (int i = 0; i < arr.length; i++) {
            //System.out.print(i+" ");
            int val = arr[i]-1  ;
            //System.out.println(val);
            countarr[val]++;
        }

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

    }
} public class Main{

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());
        String s = reader.readLine();
        String[] inp = s.split(" ");

        int[] arr = new int[n-1];

        for (int i = 0; i < inp.length; i++) {
            arr[i]=Integer.parseInt(inp[i]);
        }

        int[] countarr = new int[n];

        for (int i = 0; i < arr.length; i++) {
            //System.out.print(i+" ");
            int val = arr[i]-1  ;
            //System.out.println(val);
            countarr[val]++;
        }

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

    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());
        String s = reader.readLine();
        String[] inp = s.split(" ");

        int[] arr = new int[n-1];

        for (int i = 0; i < inp.length; i++) {
            arr[i]=Integer.parseInt(inp[i]);
        }

        int[] countarr = new int[n];

        for (int i = 0; i < arr.length; i++) {
            //System.out.print(i+" ");
            int val = arr[i]-1  ;
            //System.out.println(val);
            countarr[val]++;
        }

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

    }
}
