Input: Sentence: 'People are enjoying the beach under rainbow umbrellas'. Count the number of nouns in this sentence.
Output: 4