Pedometer in unity?

Hello,
I want to develop an android application which needs the user to walk around. SO I need to calculate and store the number of steps he walks. How can this be done in unity?

here’s an implementation done for windows phone

should be fairly easy to port to unity using the Gyroscope

I cant confirm the precision of this method, as I haven’t tried it myself. However, this should give you a good start

Haven’t tried it, but I found this: