from collections import Counter n = int(input()) m = Counter(list(map(int,input().split()))) c = [i for i in m.values()] print(c.count(1))