Design and Validation of a Minimal Complexity Algorithm for Stair Step Counting