Input: Sentence: 'A horse drawn carriage with three men riding on it's back'. Count the number of nouns in this sentence.
Output: 3