Input: Sentence: 'A closeup of a pizza with whole tomato slices'. Count the number of nouns in this sentence.
Output: 4