Need weight loss advice

I went to a dr. Checkup on Monday. And my Dr. made me feel horrible. She flat out told me I’m to big for my age. I’m 28, no kids and 180 pounds. Yes I know I’m on the bigger side. I just finished a 2 year program and recently took my boards that drained me. And yes I admit I gained weight. I was a soccer player growing up and would go to the gym often throughout my 2 year degree program. But 2 months before taking my boards it hit me and I was always stressed and stoped working out . Can someone give me some tips to get strict on my diet? I’m going to the gym again 4 days a week. Should I do more??