On the upper bound of the number of limit cycles obtained by the second order averaging method I