Pumping at resonant transmission and transferred charge quantization