Input: Sentence: 'An elephant in the wild walking by a house'. Count the number of nouns in this sentence.
Output: 2