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

Example Input: Sentence: 'A man sleeping on a wooden bench next to a bag of luggage'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A plate of food with meat, spaghetti and sauce and something in a bowl'. Count the number of nouns in this sentence.
Example Output: 6

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