Add option to specify number of lines to display

This is a simple implementation of the line count option. It does not
support the '+' prefix or the size suffix(MB, kB, etc).
Refactor option variable naming

This should make the intent clearer.
Refactor option parsing to a separate method