refactor get_stats_tag into TagCloud model