code: public AsyncLookupInBuilder getCount(String... paths) {
          if (paths == null || paths.length == 0) {
              throw new IllegalArgumentException("Path is mandatory for subdoc get count");
          }
          for (String path : paths) {
              if (StringUtil.isNullOrEmpty(path)) {
                  throw new IllegalArgumentException("Path is mandatory for subdoc get count");
              }
              this.specs.add(new LookupSpec(Lookup.GET_COUNT, path));
          }
          return this;
      }
docs: Get the count of values inside the JSON document.
  
  This method is only available with Couchbase Server 5.0 and later.
  
  @param paths the path inside the document where to get the count from.
  @return this builder for chaining.