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

Example Input: Sentence: 'Two people riding a surfboard in the open waves'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'Two people with dogs walking by a modern building in a city'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A gentleman taking a picture of his food with his phone'. Count the number of nouns in this sentence.
Example Output:
4