Input: Sentence: 'The sandwich halves are beside very small tomatoes'. Count the number of nouns in this sentence.
Output: 3