Keep and report some statistics.