n=input();b={} a=list(map(int,input().split())) for _ in a: if _ not in b: b[_]=1 else: b[_]+=1 print(list(b.values()).count(1))