A pedometer is a small electronic device that counts the number of steps taken by the user. It works by detecting body motion using a built-in accelerometer. The accelerometer measures changes in acceleration, which allows the device to determine when a step has been taken. This step count is then displayed on the pedometer's screen, providing real-time feedback on your physical activity levels.