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

Ex Input:
Sentence: 'A tall clock tower flanked by two trees'. Count the number of nouns in this sentence.

Ex Output:
3


Ex Input:
Sentence: 'A couple of people on a horse pulled carriage'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'A man is holding a pillow and watching television'. Count the number of verbs in this sentence.

Ex Output:

2