from collections import Counter input() c = Counter(map(int, input().split())) print(len([1 for i in c.values() if i == 1]))