Input: Sentence: 'The hotdog has mustard and bacon on it'. Count the number of nouns in this sentence.
Output: 3