#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a;
  vector<int> A = vector<int>();
  cin >> N;
  vector<int> B = vector<int>(N, 0);
  A.push_back(0);
  for (int i = 0; i < N - 1; i++) {
    cin >> a;
    A.push_back(a);
  }
  for (int i = 1; i < N; i++) {
    if (A[i] != 0) {
      B[A[i] - 1] += 1;
    }
  }
  for (int i : B) {
    cout << i << endl;
  }
  return 0;
}
