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

Ex Input:
Sentence: 'Century old buildings stand near streets in a city'. Count the number of verbs in this sentence.

Ex Output:
1

Ex Input:
Sentence: 'Cupcakes part iced part not with a walnut on top'. Count the number of nouns in this sentence.

Ex Output:
5

Ex Input:
Sentence: 'This is an image of a house under construction'. Count the number of nouns in this sentence.

Ex Output:
3