A counter to be used with sensor inputs on Android