Input: Sentence: 'A tabby cat staring into a blue bucket with apples in it'. Count the number of nouns in this sentence.
Output: 3