Input: Sentence: 'Looking out a bathroom window to a view of the city'. Count the number of nouns in this sentence.
Output: 4