Both counting macros (macronutrients) and calories can be effective for weight loss. It often depends on personal preference and what works best for you. Some find success in focusing on overall calorie intake, while others benefit from tracking specific macronutrient ratios (protein, fats, and carbohydrates).
Reference: WebMD – Counting Macros for Weight Loss