What is the importance of counting calories in food?

What is the importance of counting calories in food? We hear a lot about necessity Calculation of calories in food What does the body need while dieting…