Input: Sentence: 'a white ox ox is eating some grass by some water and rocks'. Count the number of nouns in this sentence.
Output: 5