n=int(input()) a=[int(i) for i in input().split()] ans=0 for i in a: cnt=0 for j in a: if i==j: cnt+=1 if cnt==1: ans+=1 print(ans)