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

Input: Consider Input: Sentence: 'A man sleeping on a wooden bench next to a bag of luggage'. Count the number of nouns in this sentence.

Output: 4


Input: Consider Input: Sentence: 'A kite flying next to a palm tree in a blue sky'. Count the number of nouns in this sentence.

Output: 4


Input: Consider Input: Sentence: 'smoothing over the top layer of a pie'. Count the number of verbs in this sentence.


Output: 1