

'''

'''

with open("out.txt") as fh:
    line=fh.readline()
    count = 0
    for line in iter(fh.readline, ''):
        for character in line:
            if character.isupper():
                count += 1
    print count

