Input: Sentence: 'a cat sits on a wood plank next to a boat'. Count the number of nouns in this sentence.
Output: 4