add working count_redirects