Registers an event listener for accelerometer shake events and displays the cumulative count of shake events.