How does a CBC test help diagnose anemia?