Add --count option

Display how often a line occurred in the input if --count/-c is given.

Signed-off-by: Ulrich Klauer <ulrich@chirlu.de>
Add tests for --count

Signed-off-by: Ulrich Klauer <ulrich@chirlu.de>