We study the number of limit cycles of polynomial differential systems of the forṁwhere g 1 , f 1 , g 2 and f 2 are polynomials of a given degree. Note that when g 1 (x) = f 1 (x) = 0, we obtain the generalized polynomial Liénard differential systems. We provide an accurate upper bound of the maximum number of limit cycles that the above system can have bifurcating from the periodic orbits of the linear centreẋ = y,ẏ = −x using the averaging theory of first and second order.