Nike+? It uses the accelerometer as a pedo-meter to track how much you've walked and calculate a distance. Nike+ also links via Bluetooth to Nike+ accessories which also work toward this.
If you want a good tracking system, GPS then, but you would have to have data in order to get the maps and actually see how far you went.