Well, weight isn't always fat. If you're exercising, weight gain also comes from building muscle. When I started slipping in my fitness routine - I'd keep checking my weight hoping it'd stay the same despite no exercise and it did for about a week or so, then one morning I woke up and noticeably felt bigger- in my upper arms and tummy - but my weight was still the same. I think it's cuz whatever muscle I had had now turned into pure flab
And it repeated as I gradually continued to gain weight and got to where I am...totally unfit, unhealthy and flabby. SO - don't focus so much on your weight. Keep an eye on how your clothes fit too, or measure yourself weekly. Even if you may be gaining weight or maintaining despite exercise, it could be the muscle talking.
If you've gained ALOT though...despite exercise and limited calories... maybe you should consult with a professional of some kind? It may be something else that you should have checked
Don't be discouraged!! It's wonderful what you're doing and you should feel good about that! I don't gym nor do I count my calories... :-/ I'm starting with 20 minute videos... I also sit on my butt all day long.