Input: Sentence: 'Sun shining through to a pew in a church'. Count the number of nouns in this sentence.
Output: 2