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