Constipation in 4m old

Anna
What do you do for a constipated 4m old? I've never had this issue before with my son but my daughter has been having pellet like poop and really making a lot of noise to try to poop and nothings coming for her.