Input: Sentence: 'A giraffe that is laying down in the grass'. Count the number of nouns in this sentence.
Output: 2