Stats class

Begin statistics calculation into it's own class. Just inherit from `Hash` and use the existing framework for statistics calculation until we move it into it's own object.