Abstract: We study the number of limit cycles bifurcating from the origin of a Hamiltonian system of degree 4. We prove, using the averaging theory of order 7, that there are quartic polynomial systems close these Hamiltonian systems having 3 limit cycles.