code: public static Map<String, Long> buildCountMap(Pattern pattern, Path path) {
          return buildCountMap(
                  JMFiles.getLineStream(path).flatMap(pattern::splitAsStream));
      }
docs: Build count map map.
  
  @param pattern the pattern
  @param path    the path
  @return the map