# Given a string consisting of words separated by spaces. Determine how many
# words it has. To solve the problem, use the method count.

sentenses = "Hello my name is Kanat and surname is Nadyrbekov"
print(sentenses.count(' ') + 1)