code: public <T> List<String> getCountersFor(T instance) {
          if (instance == null) {
              throw new IllegalArgumentException("Instance cannot be null");
          }
  
          DocumentInfo documentInfo = getDocumentInfo(instance);
  
          ArrayNode countersArray = (ArrayNode) documentInfo.getMetadata().get(Constants.Documents.Metadata.COUNTERS);
          if (countersArray == null) {
              return null;
          }
  
          return IntStream.range(0, countersArray.size())
                  .mapToObj(i -> countersArray.get(i).asText())
                  .collect(Collectors.toList());
      }
docs: Gets all counter names for the specified entity.
  @param instance Instance
  @param <T> Instance class
  @return All counters names