The native android code for the rep counter