Moved doCounts into Counts object.