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

Example Input: Sentence: 'A woman sitting next to a window smiles for a picture'. Count the number of nouns in this sentence.
Example Output: 3

Example Input: Sentence: 'Orange cupcake with Orange is sitting next to it'. Count the number of nouns in this sentence.
Example Output: 2

Example Input: Sentence: 'Children eating a meal in a school cafeteria'. Count the number of nouns in this sentence.
Example Output:
4