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

Example Input: Sentence: 'A cat sitting next to a pair of legs on the ground'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A man flying through the air while riding a snowboard'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A mountain view of the sky with three kites in sight'. Count the number of nouns in this sentence.
Example Output:
5