Input: Sentence: 'Cake being served at a fine afternoon tea party'. Count the number of nouns in this sentence.
Output: 4