Input: Sentence: 'Three slices of thin pizza next to two bottles of wine'. Count the number of nouns in this sentence.
Output: 4