Check if the character is not a letter that means there is a space , then we increment the wordCount by one and set the isWord by false
elif ( not ch [ i ] . isalpha ( ) and isWord ) : NEW_LINE INDENT wordCount += 1 NEW_LINE isWord = False NEW_LINE DEDENT