#include <bits/stdc++.h>
using namespace std;
int main() {
  long N;
  cin >> N;
  vector<long> A(N);
  A[0] = 0;
  for (long i = 1; i < N; i++) {
    cin >> A[i];
  }
  vector<long> answer(N);
  for (long i = 0; i < N; i++) {
    answer[i] = 0;
  }
  for (long i = 1; i < N; i++) {
    answer[A[i] - 1]++;
  }
  for (long i = 0; i < N; i++) {
    cout << answer[i] << endl;
  }
}
