The task I need to accomplish is simple: "ungzip an inputstream and count how many characters were produced".
c++ code: