Input: Sentence: 'an elephant standing on a dirt and grass patch just in front of shrubbery'. Count the number of nouns in this sentence.
Output: 6