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

Ex Input:
Sentence: 'a man in a white shirt laying in bed'. Count the number of nouns in this sentence.

Ex Output:
3


Ex Input:
Sentence: 'a man with a white surfboard riding a small wave'. Count the number of verbs in this sentence.

Ex Output:
1


Ex Input:
Sentence: 'A young man taking a swing at a  baseball'. Count the number of nouns in this sentence.

Ex Output:

3