text: 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
code: elif ( not ch [ i ] . isalpha ( ) and isWord ) : NEW_LINE INDENT wordCount += 1 NEW_LINE isWord = False NEW_LINE DEDENT