LoLbreadplease:
Cronometer does this, for losing or gaining, and it's free. You can record what you eat and it has a good library of food and the calorie count. Also tracks vitamins and other nutrients. I can recommend it.
Thanks for the info. I'll give it a look.