Input: Sentence: 'A whole sliced pizza with the plastic pieces that prevent it from touching the lid in a box'. Count the number of nouns in this sentence.
Output: 4