Input: Sentence: 'A small boy runs through a field with a kite'. Count the number of nouns in this sentence.
Output: 3