import java.util.Scanner object Problem182 { def main(args: Array[String]) { val sc = new Scanner(System.in) val N = sc.nextInt() val A = List.fill(N)(sc.nextInt()) val result = A.groupBy(x => x).filter(_._2.length == 1).size println(result) } }