import collections n = int(input()) a= list(map(int,input().split())) ans = 0 for i in collections.Counter(a).values(): if i == 1: ans += 1 print(ans)