<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reset_user_attempts(request: AxesHttpRequest, credentials: dict = None) -> int: """ Reset all user attempts that match the given request and credentials. """


    attempts = filter_user_attempts(request, credentials)

    count, _ = attempts.delete()
    log.info('AXES: Reset %s access attempts from database.', count)

    return count