from collections import Counter input();ans=0 for i,j in Counter(map(int,input().split())).items(): ans+=j==1 print(ans)