Histories as counter-accounting