Add an option to disable counting invisible lines.