Fix count= suffix in URL.
Rewrite URL replacement directions