calculate the number of uppercase letters in a file