Input: Sentence: 'A sun sandwich on a white plate beside a beverage'. Count the number of nouns in this sentence.
Output: 4