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

Ex Input:
Sentence: 'm mm m mm m mmmm mm m'. Count the number of nouns in this sentence.

Ex Output:
1


Ex Input:
Sentence: 'A baseball game in progress with the batter in the middle of the swing'. Count the number of nouns in this sentence.

Ex Output:
6


Ex Input:
Sentence: 'A man sitting on the beach next to a surfboard'. Count the number of nouns in this sentence.

Ex Output:

3