Input: Sentence: 'Three mountain goats standing amongst the rocks on the mountain'. Count the number of nouns in this sentence.
Output: 4