Stairsteps counter using a smartphone and the accelerometer and rotation sensor