#include using namespace std; int main() { int N; cin >> N; vector A(N); map m; for (int i = 0; i < N; i++) { cin >> A[i]; m[A[i]]++; } int ans = 0; for (auto it : m) { if (it.second == 1) ans++; } cout << ans << endl; }