Make HistoryFile look like more like a default dictionary class, plus add a CounterWrapper class to go with it