Fix initialization of counter when first onSensorChanged() event.values[0] = 0