#include using namespace std; int main() { int n, t, ans = 0; cin >> n; map mp; for (int i = 0; i < n; i++) { cin >> t; mp[t]++; } for (auto& e : mp) { if (e.second == 1) ans++; } cout << ans << endl; return 0; }