Input: Sentence: 'A woman is cooking tofu and vegetables in a kitchen'. Count the number of nouns in this sentence.
Output: 4