private int countLines(String text) {
		int count = 0;
		for (int pos = -1; (pos = text.indexOf(lineSeparator, pos + 1)) != -1; count++) {
			/* Empty */
		}
		if (!text.endsWith(lineSeparator)) count++;
		return count;
	}