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

Example Input: Sentence: 'A red open fire hydrant spewing water from it'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'There is a man walking towards the waves'. Count the number of nouns in this sentence.
Example Output: 2

Example Input: Sentence: 'Person is taking a picture of their cat through a mirror'. Count the number of nouns in this sentence.
Example Output:
4