Sharp polynomial bounds on the number of scattering poles