Input: Sentence: 'a cat lays down next to a glass with a straw in it'. Count the number of nouns in this sentence.
Output: 3