wrd = input("Write your words: ")
wrd1 = wrd.strip(" ")
print(wrd1 .count(" ") + 1)
7ce658f2315ad90dce32616c40313aa695b9dd11
<mask token>

<mask token>
print(wrd1.count(' ') + 1)

wrd = input('Write your words: ')
wrd1 = wrd.strip(' ')
print(wrd1.count(' ') + 1)

wrd = input("Write your words: ")
wrd1 = wrd.strip(" ")
print(wrd1 .count(" ") + 1)