#include<iostream>
#include<vector>
#include<algorithm>
#include<math.h>
using namespace std;

int main() {
  long long N;
  cin >> N;
  vector<long long> A(N, 0);
  for (int i = 1; i < N; i++) cin >> A[i];

  vector<long long> ANS(N, 0);
  for (int i = 0; i < N; i++) ANS[A[i] - 1]++;
  for (int i = 0; i < N; i++) cout << ANS[i] << endl;
}
