Step Counting Using Smartphone-Based Accelerometer