Input: Sentence: 'A tray of food with a sandwich on a toasted bun'. Count the number of nouns in this sentence.
Output: 4