Count Content-Length to run on Android