Added example docs to CountHistory::getHistory and added debug output to tests