Micron Technology interview question

Two python basics programming questions- Count the number of words in the sentences.