In this task, you need to count the number of nouns/verbs in the given sentence.

Input: Consider Input: Sentence: 'A sandwich with lettuce and tomatoes sits on a box in a park'. Count the number of nouns in this sentence.

Output: 5

Input: Consider Input: Sentence: 'The dessert has ice cream and some fruit'. Count the number of verbs in this sentence.

Output: 1

Input: Consider Input: Sentence: 'A street that leads to a dead end next to trees'. Count the number of nouns in this sentence.
Output: 3