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

Input: Consider Input: Sentence: 'A German shepherd laying in front of a door'. Count the number of nouns in this sentence.

Output: 3

Input: Consider Input: Sentence: 'a kitchen with a bunch of food in boxes and bananas hanging from hooks'. Count the number of verbs in this sentence.

Output: 1

Input: Consider Input: Sentence: 'A boy near a fruit cart with hanging bananas'. Count the number of verbs in this sentence.
Output: 1