from collections import Counter n = input() a = list(map(int, input().split())) sum = sum([1 for i in Counter(a).values() if i < 2]) print(sum)