Help pls

Letty

So my 2 yr old it’s doing hard stools! But she poops 1x every day n for some reason she will have hard stools n soft. Her doc said more veggies n more fruits.. n I do give her veggies n fruits.. so now my questions is how much fruit n veggies a day? Does any mama having this problem n breaks my hard seeing my bby pushing hard.. .