Input: Sentence: 'A pizza with meat and cheese sitting by a beer'. Count the number of nouns in this sentence.
Output: 4