Weight

I’m really struggling with not wanting to gain to much weight but also not being able to control my daily intake! Does anyone have any advice/ fitness apps or anything that help them stay on track?? I gained 4st last pregnancy and although I lost the weight I really wanted to keep it under control this time round!