add getLineCount(), unix only