Input: Sentence: 'A variety of items including books, food and a bag'. Count the number of nouns in this sentence.
Output: 5