This paper deals with the number of limit cycles of a piecewise smooth cubic integrable differenti-al system with the switching line x=0 under perturbations of polynomials of degree n.By using the first order averaging function,we get the maximum number of limit cycles bifurcating from the period annulus surrounding the origin.