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

int main() {
  int i, j, n;
  int a[2*100000] = { 0 };
  int buka[2*100000] = { 0 };

  cin >> n;
  
  for(i = 2; i <= n; i++)
    cin >> a[i];
  
  for(i = 2; i <= n; i++)
      buka[a[i]]++;
  
  for(i = 1; i <= n; i++)
    cout << buka[i] << endl;
}