Input: Sentence: 'Two inflatable items cast a shadow on the ground as they sway in the wind'. Count the number of nouns in this sentence.
Output: 4