Input: Sentence: 'A woman has her picture taken while she cuts a cake'. Count the number of nouns in this sentence.
Output: 3