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

Example Input: Sentence: 'a window is next to a toilet in a bathroom'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'A person jumps above a body of water'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'a horse on a field of grass behind a fence'. Count the number of nouns in this sentence.
Example Output:
4