Refactor keepAliveCount. Fix google responses without content-length