Input: Sentence: 'a person rides a zebra with a elephant walking in the back ground'. Count the number of nouns in this sentence.
Output: 4