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

Ex Input:
Sentence: 'Different colored plaques displayed some gold, some green'. Count the number of nouns in this sentence.

Ex Output:
2


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 pet enclosure with grass and a fire hydrant'. Count the number of nouns in this sentence.

Ex Output:

4