It measures the amount of follicle-stimulating hormone (FSH) in the blood to determine the number of eggs the patient has in reserve.