单项选择题

According to the passage, when small children were asked to count a pile of red and blue pencils they ______.

A.counted the number of pencils of each color
B.guessed at the total number of pencils
C.counted only the pencils of their favorite color
D.subtracted the number of red pencils from the number of blue pencils