#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int var;
  vector<int> count(n + 1, 0);
  for (int i = 1; i < n; i++) {
    cin >> var;
    count[var]++;
  }
  for (int i = 1; i < count.size(); i++) {
    cout << count[i] << "\n";
  }
}
