instruction: tell me the number of patients with lab test item id 51347 who were admitted for more than 4 days in hospital.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "4" AND lab.itemid = "51347"