Tracking what you eat is important, counting calories not necessarily. The calories-in/calories-out model misses a number of important factors like the effect of insulin on weight and lowering of BMR on non-fasted caloric restriction.
IOW, 100 calories of fat are very different from 100 calories of sugar, and that's completely erased when everything is standardized as a simple "calorie".