New born stomach discomfort

Until how many months do babies suffer from stomach gases