Input: Sentence: 'A table with two boxes of pizza and beer cans'. Count the number of nouns in this sentence.
Output: 5