def reset_user_attempts(request: AxesHttpRequest, credentials: dict = None) -> int:
attempts = filter_user_attempts(request, credentials)<EOL>count, _ = attempts.delete()<EOL>log.info('<STR_LIT>', count)<EOL>return count<EOL>
Reset all user attempts that match the given request and credentials.