Input: Sentence: 'A man in a diner holding two baskets of sandwiches'. Count the number of nouns in this sentence.
Output: 4