Input: Sentence: 'Pigeons attempt to eat pieces of pizza on the ground'. Count the number of nouns in this sentence.
Output: 4