Bugfix: lineCount option was off by one