According to an embodiment, a pedometer includes an acceleration detecting circuit configured to detect acceleration from an output of an acceleration sensor and output an acceleration signal, a band-pass filter configured to remove, from the acceleration signal, a frequency component generated by arm swinging during walking and included in the acceleration signal, and a step counter configured to count a number of steps based on the acceleration signal outputted from the band-pass filter.