On the Number of Limit Cycles in Perturbations of Quadratic Hamiltonian Systems