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: 'A modern living room with a couch and tv'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'Surfer riding a wave in ocean with surfboard pointed up'. Count the number of nouns in this sentence.
Example Output:
4