Input: Sentence: 'A man in plaid shawl walking with a black horse'. Count the number of nouns in this sentence.
Output: 4