#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int A[N - 1];
  int B[N];
  int i = 0;
  int j = 0;
  int k = 0;
  while (i != N) {
    B[i] = 0;
    i++;
  }
  while (j != N - 1) {
    cin >> A[j];
    B[A[j] - 1] = B[A[j] - 1] + 1;
    j++;
  }
  while (k != N) {
    cout << B[k] << endl;
    k++;
  }
  return 0;
}
