human
Complete the below
def countcalls(counts):

    ''''Decorator to count calls to a function'
    '''
 Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.
    def decorate(func):
        func_name = func.__name__
        counts[func_name] = 0
        def call(*args, **kwds):
            counts[func_name] += 1
            return func(*args, **kwds)
        call.__name__ = func_name
        return call
    return decorate