N = int(input()) L = list(map(str,input().split())) D = {} for n in L : if n not in D : D[n] = 1 else : D[n] += 1 ans = list(D.values()).count(1) print(ans)