_n = gets.to_i a = gets.split.map(&:to_i) puts a.tally.values.count(1)