New to myfitnesspal, but motivated

Options
I am at 225, should be 180, and really struggle to lose. Seems when I count calories, and exercise, I just gain. Then I give up, don't think about it for a while, and the weight continues to creep up.