Append a test trace to a counter, updating global current test
count_test(key)
key
generated with key()
key()