def METHOD_NAME(max_count: int) -> int:
    count = 0
    export_requests = (
        db.session.query(UserDataExport)
        .filter(UserDataExport.completed == False)  # noqa
        .order_by(UserDataExport.created_at)
        .limit(max_count)
        .all()
    )
    for export_request in export_requests:
        export_user_data(export_request.id)
        count += 1
    return count