Input: Sentence: 'a keyboard that has some lego men on  it'. Count the number of nouns in this sentence.
Output: 2