#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 2 * 10e5 + 5;
long long n, m, second, a[MAX_N], cnt[MAX_N];
int main() {
  cin >> n;
  a[0] = -1;
  for (int i = 1; i < n; ++i) {
    cin >> a[i];
    ++cnt[a[i] - 1];
  }
  for (int i = 0; i < n; ++i) {
    cout << cnt[i] << endl;
  }
  return 0;
}
