n=int(input()) ls=list(map(int,input().split())) cnt=0 for i in range(n): if ls.count(ls[i])==1: cnt+=1 print(cnt)