Input: Sentence: 'A lone man flies a large kite on a beautiful beach'. Count the number of nouns in this sentence.
Output: 3