Input: Sentence: 'A yellow school bus driving past a church with a white tower'. Count the number of nouns in this sentence.
Output: 4