Input: Sentence: 'A windmill patterend cake on a white plate'. Count the number of nouns in this sentence.
Output: 4