#include <iostream>

using namespace std;

int main()
{
    int n;
    int a[210000];
    int b[210000];
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        a[i] = 0;
        b[i] = 0;
    }
    for (int i = 0; i < n-1; i++)
    {
        cin >> a[i+1];
    }
    for (int i = 0; i < n; i++)
    {
        b[a[i]-1]++;
    }
    for (int i = 0; i < n; i++)
    {
        cout << b[i] << endl;
    }
    return 0;
}