from collections import Counter
n = input()
print(sum([i for i in Counter(input().split()).values() if i==1]))