Hello, Borislav.
It will take a few months for your j pouch to get to a regular schedule and not go so frequently, especially at night. In my first few weeks I experienced frequency every 5 minutes, but then it stopped. I didn't do anything, it just stopped. I think the pouch matured and figured out how to work by itself. Going every 5 minutes just means your pouch hasn't finished, and there is still something inside that is irritating, that's all. Try not to worry. For some people their pouch behaves normally right from the start. For others, it can take many months. No one is exactly the same.
Ask your doctor or surgeon about Immodium to slow the frequency and how many pills you should take in one day. My surgeon told me I could take up to 8 over a 24 hour period, but each person is different, so ask your doctor at your next visit. Try Metamucil powder to add to a glass of water to thicken your stool so you can hold on longer. Eat foods that help thicken the stool, such as white rice, pasta with a bit of olive oil and cheese grated on top, mashed potatoes (peel the skin off because the skin is fiber, and fiber makes you go even more), bananas, sourdough bread with peanut butter. I would avoid butter for now in case it gives you problems because butter is greasy or fatty. No spicy foods. If eating vegetables or fruit, don't eat the skins. Eat clean, simple, whole foods, not processed foods. For now, eat like a baby: protein foods, soft foods, nothing greasy, nothing fried, limit foods that give you gas (broccoli, cabbage, beans, carbonated drinks). Give it time. Don't eat late at night.