#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i> N; vector A(N); for(int &a : A) cin >> a; map cnt; for(int &a : A) cnt[a]++; int ans = 0; for(auto &c : cnt){ if(c.second == 1){ ans++; } } cout << ans << endl; return 0; }