private long getForwardFileMetaCount(final Config config) {
        final List<ForwardFileConfig> forwardConfigs = NullSafe.getOrElseGet(
                config,
                Config::getProxyConfig,
                ProxyConfig::getForwardFileDestinations,
                Collections::emptyList);

        if (!forwardConfigs.isEmpty()) {
            return forwardConfigs.stream()
                    .mapToLong(forwardConfig -> {
                        if (!forwardConfig.getPath().isBlank()) {
                            try (Stream<Path> pathStream = Files.walk(
                                    pathCreator.toAppPath(forwardConfig.getPath()))) {
                                return pathStream
                                        .filter(path -> path.toString().endsWith(".meta"))
                                        .count();
                            } catch (IOException e) {
                                throw new RuntimeException(e);
                            }
                        } else {
                            return 0L;
                        }
                    })
                    .sum();
        } else {
            return 0L;
        }
    }
A count of all the meta files in the {@link ForwardFileConfig} locations.
stroom-proxy/stroom-proxy-app/src/test/java/stroom/proxy/app/MockFileDestination.java