str1 = input()
count = 0
str1 = set([i for i in str1])
for i in str1:
    if ord(i)>=0 and ord(i) <= 127:
        count += 1
print(count)