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

Ex Input:
Sentence: 'A cat sitting next to a pair of legs on the ground'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'A collection of books and knick-knacks on shelves'. Count the number of nouns in this sentence.

Ex Output:
5


Ex Input:
Sentence: 'Two horses are walking a carriage through the streets'. Count the number of nouns in this sentence.

Ex Output:

3