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.
Yeah chronometer is good. Used it when working out. Can scan barcodes and get all the nutrients and calories all auto inputted for that day. If they don't have it in the database you can add it yourself. Really good app.