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