Input: Sentence: 'there is a piece of cake and a fruit on a green late'. Count the number of nouns in this sentence.
Output: 3