<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ready_print(worker, output, error):
 # pragma : no cover """Local test helper."""

    global COUNTER
    COUNTER += 1
    print(COUNTER, output, error)