New version of step counter (analyze Z and Y accelerations)