Input: Sentence: 'A zebra staring with a tag with a number attached to his ear'. Count the number of nouns in this sentence.
Output: 4