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

Ex Input:
Sentence: 'A man and a woman are cuddling on a park bench'. Count the number of nouns in this sentence.

Ex Output:
4


Ex Input:
Sentence: 'The display has many towers of stacked cookies next to trays full of cookies'. Count the number of nouns in this sentence.

Ex Output:
5


Ex Input:
Sentence: 'A person is walking down the beach holding a surfboard'. Count the number of nouns in this sentence.

Ex Output:

3