fix count_topics_by_tags