Input: Sentence: 'A boat with emergency lights on it sitting in a harbor'. Count the number of nouns in this sentence.
Output: 4