int getLineCount(int start, int end) { String value = new String.fromCharCodes(input.getRange(start, end)); return value.split('\n').length; }