Input: Sentence: 'A square pizza sits on a pan next to a monkey plate'. Count the number of nouns in this sentence.
Output: 4