code: public int getNumberOfCodebooks() {
          byte[] data = getData();
          int number = -1;
          if(data != null && data.length >= 10) {
              number = IOUtils.toInt(data[8]);
          }
          return (number+1);
      }
docs: Example first bit of decoding