private int getRetrievedHitCount(HitCounts counts) {
        if (counts == null) {
            return 0;
        }

        return counts.getRetrievedHitCount();
    }
Formatting of an {@link AccessLogEntry} in the Vespa JSON access log format.

@author frodelu
container-core/src/main/java/com/yahoo/container/logging/JSONFormatter.java