Input: Sentence: 'An eagle is standing on top of a pile of rocks'. Count the number of nouns in this sentence.
Output: 4