public Counter counterForThread() {
      return thread.get();
    }
Returns the counter for this thread, so it can be cached to avoid subsequent thread local lookups.
planetiler-core/src/main/java/com/onthegomap/planetiler/stats/Counter.java