instruction: Count the number of patients whose primary disease is upper GI bleed and died in or before year 2179.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "UPPER GI BLEED" AND demographic.dod_year <= "2179.0"