count_links