instruction: calculate the total number of patients who had an abnormal lab test result for red blood cells.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "Red Blood Cells"