Constant passing of wind

Patient: My boyfriend has a problem with passing wind very often (Everyday, at least once or twice every hour) as well as burping. I understand he will be unable to refrain from doing this as it causes stomach aches. Is there a medical reason for this happening as often as it does? What can he do to minimise passing wind so often?

Doctor: