#include <bits/stdc++.h>
#define ll long long
#define pb push_back

using namespace std;

const int  mod = 1e9 + 7;
const int e = 2e5 + 69;
const int base = 311;

ll child[e];

int main()
{
    ll n;
    cin >> n;
    for(int i=2; i<=n; i++)
    {
        ll par;
        cin >> par;
        child[par] ++;
    }
    for(int i=1; i<=n; i++) cout << child[i] <<"\n";
}
