#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 1;
int ans[MAXN];
int N;
int main() {
  cin >> N;
  for (int i = 2; i <= N; i++) {
    int act;
    cin >> act;
    ans[act]++;
  }
  for (int i = 1; i <= N; i++) {
    cout << ans[i] << '\n';
  }
}
