<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hello_command(name, print_counter=False, repeat=10):
 """Print nice greetings."""

    for i in range(repeat):
        if print_counter:
            print i+1,
        print 'Hello, %s!' % name