#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, p[10005], c[10005];
  cin >> n;
  for (int i = 2; i <= n; i++) {
    cin >> p[i];
  }
  for (int i = 1; i <= n; i++) {
    cin >> c[i];
  }
  int ans = 1, nowColor[10005];
  for (int i = 1; i <= n; i++) {
    nowColor[i] = c[1];
  }
  for (int i = 2; i <= n; i++) {
    if (nowColor[p[i]] != c[i]) {
      ans++;
    }
    nowColor[i] = c[i];
  }
  cout << ans << endl;
  return 0;
}
