import collections n = int(input()) a = list(map(int, input().split())) c = collections.Counter(a) d = list(c.values()) print(d.count(1))