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

Example Input: Sentence: 'A man riding on the back of an elephant near a lake'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A man sitting in front of a computer taking a bit out of a pastry and holding a drink'. Count the number of nouns in this sentence.
Example Output: 6

Example Input: Sentence: 'there is a red bird sitting outside of a window'. Count the number of verbs in this sentence.
Example Output:
1