N = input() inp = map(int, raw_input().split()) dict = {} for n in inp: if n not in dict: dict[n] = 1 else: dict[n] += 1 print dict.values().count(1)