code: private void setServicesCount() {
          servicesCount = MAX_SERVICE_COUNT;
          metadataLength = NUMBER_OF_INTS_IN_HEADER * BitUtil.SIZE_OF_INT + SIZEOF_STRING + servicesCount * (SIZEOF_STRING +
                  NUMBER_OF_INTS_PER_SERVICE * BitUtil.SIZE_OF_INT);
          endOfMetadata = BitUtil.align(metadataLength + BitUtil.SIZE_OF_INT, BitUtil.CACHE_LINE_LENGTH);
          serviceRefSection = endOfMetadata - servicesCount * OFFSETS_PER_SERVICE * BitUtil.SIZE_OF_INT;
      }
docs: Method setting the number of services and metadata length