Input: Sentence: 'The woman is flying a kite on the beach'. Count the number of nouns in this sentence.
Output: 3