# write a python program that counts and returns the # number of words in a given text

string1 = "write a python program that counts and \ returns the number of words in a given text"

# First Method
string1_length = len(string1.split())
print(string1_length) # you can use exit instead of print

#Second Method
for index, string1 in enumerate(string1.split()):
pass
print(index+1) # you can use exit instead of print