Input: Sentence: 'A slice of pizza sits next to a mini sandwich'. Count the number of nouns in this sentence.
Output: 3