Input: Sentence: 'A large bird stands on the ledge of a window'. Count the number of nouns in this sentence.
Output: 3