Input: Sentence: 'A sandwich served on a plate with salad'. Count the number of nouns in this sentence.
Output: 3