#include <bits/stdc++.h>
using namespace std;
int main() {
  int N = 0;
  cin >> N;
  int boss[200001] = {0};
  for (int i = 2; i <= N; i++) {
    int tem = 0;
    cin >> tem;
    boss[tem]++;
  }
  for (int i = 1; i <= N; i++) {
    cout << boss[i] << endl;
  }
}
