from collections import Counter input() print(sum( i < 2 for i in Counter(input().split()).values()))