Sharp bounds on the number of scattering poles for perturbations of the Laplacian