n,a=gets,gets.split.map(&:to_i) puts a.count{|c|a.count(c)==1}