N = int(input()) L = list(input()) D = {} for n in L : if n not in D : D[n] = 1 else : D[n] += 1 ans = list(D.values()).count(1) print(ans)