It's not clear exactly what your question is. I'll take it as asking about a electronic pedometer.
Yes, that is possible. Mechanical pedometers work by detecting the up and down bounces of your body as you walk. This is done with a mass on a spring, and a mechanism to increment a mechanical counter each cycle.
You can electronically sense the same up and down bouncing of the body with something called a accelerometer. These put out a signal proportional to the acceleration they are subjected to.
There are several different technologies, trading off cost and accuracy. Those used for inertial navigation of aircraft, for example, cost 10s of $k. Fortunately for you, there are also devices available at the other end of that tradeoff. MEMS technology allows for cheap accelerometers on chips, and cost 10s of cents to a few dollars. These are what cell phones use to determine which way you are holding them, and rotate the screen accordingly, for example.
A cheap MEMS accelerometer is plenty good enough to detect the up/down bouncing of the body due to walking. In fact, I'm pretty sure there is a smart phone app that uses the built-in accelerometer to do exactly that.