Input: Sentence: 'Small dog is closely guarding small boat and a paddle'. Count the number of nouns in this sentence.
Output: 3