Input: Sentence: 'a truck has pulled off the road to look at an elephant'. Count the number of nouns in this sentence.
Output: 3