Context: The passage below describes an experiment. Read the passage and think about the variables that are described.

Ben often saw woodpeckers perched in trees in his backyard, but he never saw them at his bird feeders. Ben usually filled his feeders with sunflower seeds. He wondered if he could attract woodpeckers by adding a different type of food to the feeders.
To test this idea, Ben gathered eight identical bird feeders. He filled four with sunflower seeds. He filled the remaining four feeders with crushed peanuts. Ben then placed the bird feeders in his backyard. Over the next five days, he counted the number of woodpeckers that visited each bird feeder each morning.
Hint: An independent variable is a variable whose effect you are investigating. A dependent variable is a variable that you measure.
Figure: a woodpecker at a bird feeder.
Which of the following was a dependent variable in this experiment?
A. the type of food used in the bird feeders
B. the number of woodpeckers that visited the bird feeders
Identify the correct option from the choices provided and respond with the letter of the correct option.

B