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

Input: Consider Input: Sentence: 'A red train engine coming into a station'. Count the number of nouns in this sentence.

Output: 3


Input: Consider Input: Sentence: 'a cat siting next to a chair on a porch'. Count the number of nouns in this sentence.

Output: 4


Input: Consider Input: Sentence: 'A windmill patterend cake on a white plate'. Count the number of nouns in this sentence.


Output: 4