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