Input: Sentence: 'The kids and adults were playing with a ball neat the tent'. Count the number of nouns in this sentence.
Output: 4