Adding tags.id to group_by in tag_counts