Input: Sentence: 'A man on a surf board with a lifejacket on'. Count the number of nouns in this sentence.
Output: 4