If this rectangle 's  Diagonal Length is  less than the Diameter,  it is a valid rectangle,  thus increment counter
if ( diagonalLengthSquare <= diameterSquare ) { rectangles ++ ; } } } return rectangles ; }