If this rectangle 's Diagonal  Length is less than the  Diameter, it is a valid  rectangle, thus increment counter
if ( diagonalLengthSquare <= diameterSquare ) : NEW_LINE INDENT rectangles += 1 NEW_LINE DEDENT return rectangles NEW_LINE