Your iPhone can track steps using a built-in accelerometer. You can track your steps in the Health app, where you can see a range of exercise metrics.
One of the FitBit's basic functions is its ability to track steps. Here's how they accurately track your movement, and how to track your step count.