add get_tags() func which can return [(tag1,count1),(tag2,count2)...] or None.