Input: Sentence: 'A beautiful swan glides across the placid water'. Count the number of nouns in this sentence.
Output: 2