human
Complete the below
def log_list_volumes(function):

    ''''Decorator to count calls to list_volumes.
    :param func function: The function to call.
    :return: A function which will call the method and do
    the extra logging.'
    '''

Write me a the Python code you requested?
assistant
#Here is the Python code you requested.
    counter = itertools.count(1)
    def _count_calls(*args, **kwargs):
        '\n                                Run    given    function    with    count.\n                                '
        CALL_LIST_VOLUMES(function=function.__name__, count=next(counter)).write()
        return function(*args, **kwargs)
    return _count_calls