Input: Sentence: 'A group of people on a field playing soccer'. Count the number of nouns in this sentence.
Output: 4