Added command line input, made the CountingStream a static inner class