from collections import Counter as c n=input() print(list(c(input().split()).values()).count(1))