#include <bits/stdc++.h>
using namespace std;
long long gcd(long long x, long long y) { return y ? gcd(y, x % y) : x; }
template <class T>
inline void read(T &res) {
  char c;
  T flag = 1;
  while ((c = getchar()) < '0' || c > '9')
    if (c == '-') flag = -1;
  res = c - '0';
  while ((c = getchar()) >= '0' && c <= '9') res = res * 10 + c - '0';
  res *= flag;
}
int k[200005];
int main() {
  int n;
  cin >> n;
  int a;
  for (int i = 2; i <= n; i++) {
    cin >> a;
    k[a]++;
  }
  for (int i = 1; i <= n; i++) cout << k[i] << endl;
  return 0;
}
