Count the number of apples.