#!/usr/bin/python from collections import Counter raw_input() A = map(int, raw_input().split()) print Counter(A).values().count(1)