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

Ex Input:
Sentence: 'A barge floating down a river towards a city'. Count the number of nouns in this sentence.

Ex Output:
3


Ex Input:
Sentence: 'A bed in a bedroom with a heart shaped box on it'. Count the number of verbs in this sentence.

Ex Output:
1


Ex Input:
Sentence: 'A dog and a tagged bull greet each other in a field'. Count the number of nouns in this sentence.

Ex Output:

3