Input: Sentence: 'A tiny baby elephant playing with a rubber ball'. Count the number of nouns in this sentence.
Output: 4