I lost about 2 stone some years ago by calorie counting. I ate whatever I liked, some meals I just had chocolate!
But, as an ex-scientist, I weighed EVERYTHING on accurate digital scales. Even if I had tomato sauce on something, I weighed the bottle before and after to work out the calories.
As a man I was allowed 2500 calories to maintain my weight, so I limited myself to 2000 as far as I remember. I wrote down EVERYTHING I ate (weight and calories) to make sure I kept to my limit. I think I lost about a pound a week.
It needed a lot of discipline, but had the advantage I could eat ANYTHING, but I knew if I binged on doughnuts (and I did) I would not be able to eat much else that day.
I still weigh some items eg I love my breakfast cereals (I have a mix of about 3 different ones together) and would eat a whole packet if I didn't weigh them and stick to 100g.