Input: Sentence: 'A man sits in a boat with a TV and movies'. Count the number of nouns in this sentence.
Output: 4