Input: Sentence: 'Two toothbrushes and toothpaste are in a container'. Count the number of nouns in this sentence.
Output: 3