How to count the value of words from imported txt file in Python? I did sth like this and have no idea what can I do to count the value of words.

```
import itertools

letter_score = 
{

                'a' : 1, 'e' : 1, 'o' : 1,
               'i' : 1, 'n' : 1, 'r' : 1,
               'l' : 1, 't' : 1, 'l' : 1,
               's' : 1, 'n' : 1, 'd' : 2,
               'g' : 2, 'b' : 3, 'c' : 3,
               'm' : 3, 'p' : 3, 'f' : 4,
               'h' : 4, 'v' : 4, 'w' : 4,
               'y' : 4, 'k' : 5, 'j' : 8,
               'x' : 8, 'q' : 10, 'z' : 10 
}

def load_dict(path):
    words = "dictionary.txt"
    return words

fname = input('dictionary.txt')
num_words = 0

with open(fname, 'r') as f:
    for line in 'f':
        words = line.split()
        num_words += len(words)
print("Number of words:")
print(num_words)

```