#include <iostream>
#include <cstring>
#include <cstdio>
#include<algorithm>
#include <queue>
#include <cmath>
#include <limits>
#include <map>
#include <iomanip>
using namespace std;
#define ll long long int

int main(){
  int n;
  cin >> n;
  int A[n+1];
  int answer[n+1];
  for (int i = 2; i <= n; i++)
  {
    A[i] = 0;
    cin >> A[i];
  }

  for (int i = 0; i <= n; i++)
  {
    answer[i] = 0;
  }

  for (int i = 2; i <= n; i++){
    answer[A[i]]++;
  } 

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

    return 0;
}