private static int getCountCompression(final String s){
    if (s != null && !s.isEmpty()) {
      char last  = s.charAt(0);
      int size = 0;
      int count = 1;
      for(int i = 1; i < s.length(); i++ ){
        if (last == s.charAt(i)) {
          count ++;
          last  = s.charAt(i);
        } else {
          size = size + 1 + String.valueOf(count).length();
          last  = s.charAt(i);
          count = 0;
        }
      }
      return size = size + 1 + String.valueOf(count).length();
    }
    
    return 0;
  }