Input: Sentence: 'People skiing across the water with sails pulling them on a beautiful day'. Count the number of nouns in this sentence.
Output: 4