Adding --count option
Support statististics for STDIN
Support statististics for STDIN
Factored out shared logic
Adding --count option
Adding --count option