#include using namespace std; int main() { unsigned long long n; unordered_map h; cin >> n; while(cin >> n) ++h[n]; n=0; for(auto&& e : h) n += (e.second==1); cout << n << endl; }