from collections import Counter _ = input() print(sum([1 for i in Counter(input().split()).values() if i < 2]))