Text this: An Upper Bound of the Bezout Number for Piecewise Algebraic Curves over a Rectangular Partition