Add counters for debugging and timed tests.