while True:
    try:
        str = ''.join(set(input()))
        count = 0
        for i in str:
            if 0 <= ord(i) <= 127:
                count += 1
        print(count)
    except:
        break