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

Example Input: Sentence: 'A part of a cake left over from a celebration'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'a cat sitting on a desk with keyboard and a computer mouse'. Count the number of nouns in this sentence.
Example Output: 5

Example Input: Sentence: 'A woman is sitting in the grass next to her red bike'. Count the number of nouns in this sentence.
Example Output:
3