Input: Sentence: 'A calm ocean inlet beckons all boats and sailors'. Count the number of nouns in this sentence.
Output: 4