Input: Sentence: 'A girl is holding a kite on a beach'. Count the number of nouns in this sentence.
Output: 3