Added Map<String, Integer> getLineCounts(String file)