This is Dr. David
I am sorry you have had such surgery and have only 4 ft of small intestine.
you can ask your doctor for prescription Lomotil which can be used with Loperamide to help slow down your bowels
also medications like cholestyramine could help as well
you may benefit from eating foods like rice, bananas, cheese which could slow down your bowels as well and cause less diarrhea.
you may need to take a daily multivitamin to help supplement your diet as your bowels may have difficulty absorbing nutrients with only 4 feet of small bowel
let me know if you have questions.
Lomotil is Diphenoxylate (2.5mg) and Atropine (0.025)