Input: Sentence: 'A piece of cake on a plate next to a fork'. Count the number of nouns in this sentence.
Output: 4