How good is it to count calories when your trying to lose weight?

Does any one do this and lose weight? I’ve heard heaps against and for it, and want to know if any one has had successful weight loss by coutning calories.