@Override
    public int hashCounter(String line, int hashLength) {
        int currentHash = line.charAt(0);
        for (int i = 1; i < line.length(); i++) {
            currentHash = currentHash * simpleNumber + line.charAt(i);
        }
        return Math.abs(currentHash % hashLength);
    }