import collections n = int(input()) a = collections.Counter(map(int,input().split())) print(sum((i == 1 for i in a.values())))