Input: Sentence: 'A horse drawn carriage traveling past a crowd next to tall buildings'. Count the number of nouns in this sentence.
Output: 4