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

Example Input: Sentence: 'A cut in half sandwich sitting on top of a table next to a foam container'. Count the number of nouns in this sentence.
Example Output: 6

Example Input: Sentence: 'A grandfather clock next to wall with windows and paintings'. Count the number of nouns in this sentence.
Example Output: 4

Example Input: Sentence: 'A glass vase with fresh flowers on a table with a glass angel'. Count the number of nouns in this sentence.
Example Output:
6