Rotation counter with gyroscope / accelerometer

Could you write me more details on how to do it? Because right now is not very clear to me :confused:

Thank you!