#include<bits/stdc++.h>
#include<math.h>
#include<map>
using namespace std;

#define ll long long
#define INF 99999999
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()



int main()
{
   int N;

   cin >> N;

   vector<int> s(N);
   vector<int> res(N);


   for( int i = 2; i <= N; i++ )
   {
       cin >> s[i];

       res[s[i]] += 1;

   }


   for( int i = 1; i <= N; i++ )
   {
       cout << res[i] << endl;
   }
    
}