/*
 * atcoder/abc163/c.cpp
 */

// C++ 14
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstring> // memset
#include <cassert>
using namespace std;
#define ll long long
#define loop(__x, __start, __end) for(int __x = __start; __x < __end; __x++)
template <class T> bool chmin(T &a, T b) { if (a > b) {a = b; return true; } return false; }
template <class T> bool chmax(T &a, T b) { if (a < b) {a = b; return true; } return false; }

/*
 * N = 2の時
 * 必ず、1 0
 * N = 3の時
 * 1
 * 1 1 0 or 2 0 0
 */
const int MAX = 200010;
int N;
vector<int> A;
int counter[MAX] = {0};

void solve() {
  cin >> N;
  int a;
  loop(n,2,N+1) {
    cin >> a;
    counter[--a]++;
  }
  loop(n, 0, N) {
    cout << counter[n] << endl;
  }
}
int main() {
  // cout.precision(15);
  // cout << fixed << double

  solve();

  return 0;
}
