Instructions: In this task, you need to count the number of nouns/verbs in the given sentence.
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