#include using namespace std; map cnt; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int n, t; int res = 0; cin >> n; for (int i = 0; i < n; i++) { cin >> t; cnt[t]++; } for (auto it : cnt) { if (it.second == 1) res++; } cout << res << '\n'; return 0; }