How often does your baby poo???

Rachael
My baby is nearly 4 weeks old and about 10 days ago, he went from 7/8 poops a day to going between 24 and 48 hours without pooing. He's so uncomfortable and obviously in pain. Been to doctor but he just said its common in newborns. He's not constipated as poo is still runny/yellow - sorry for TMI! I hate seeing him in pain. Doc said to give him warm water every 6 hours but I don't know if it's helping. He was originally breastfed but we're now on formula. The change in milk could be the problem but has anyone else experienced this? I'm desperate to help him 😭