Input: Sentence: 'A sandwich with lettuce and tomatoes sits on a box in a park'. Count the number of nouns in this sentence.
Output: 5