Maximum non-checkmating queens

Using the z3 solver in Python to find the maximum number of non-checkmating queens that can be placed on a chessboard