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

Ex Input:
Sentence: 'Man poses for picture with his dog while sitting on a bench'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'Painting of a large elephant walking through an open field by itself'. Count the number of nouns in this sentence.

Ex Output:
3


Ex Input:
Sentence: 'Two giraffes in the middle of a green pasture'. Count the number of nouns in this sentence.

Ex Output:

3