#include <bits/stdc++.h>
#define pii pair<int,int>
#define F first
#define S second
#define maxn 100005
using namespace std;
typedef long long ll;

int main()
{
    ios_base::sync_with_stdio(false); cin.tie(0);
    int n;cin>>n;
    vector<int> c(n+1,0);
    for(int i=2;i<=n;++i)
    {
        int a; cin>>a;
        c[a]++;
    }
    for(int i=1;i<=n;++i)
    {
        cout<<c[i]<<endl;
    }
    return 0;
}
