def get_tags_count(journal):
 tags = [tag for entry in journal.entries for tag in set(entry.tags)]
 tag_counts = set([(tags.count(tag), tag) for tag in tags])
 return tag_counts

def get_tags_count ( journal ) : tags = [ tag for entry in journal . entries for tag in set ( entry . tags ) ] tag_counts = set ( [ ( tags . count ( tag ) , tag ) for tag in tags ] ) return tag_counts
returns a set of tuples for all tags present in the journal .