Input: Sentence: 'Two people shaving letters on the side of a goat'. Count the number of nouns in this sentence.
Output: 4