Pedometer - Make RuuviTag to count steps

This is something for example healthcare sector companies often ask from us. A pedometer algorithm would be a useful feature to have. Is anyone familiar with those?

Seems that Nordic Semiconductor Thingy:52 has a step counter feature:

There’s a lot of literature around, maybe someone even has source code for an implementation?