Input: Sentence: 'there are blue lights shining threw palm trees'. Count the number of nouns in this sentence.
Output: 3