Input: Sentence: 'a horse with the word autism painted on it'. Count the number of nouns in this sentence.
Output: 3