Calorie counting was originally devised as a way to gain, not lose, weight.