def get_popular_aliases(self, limit=<NUM_LIT:5>):
aliases_count = defaultdict(int)<EOL>for entries_list in self.entries.values():<EOL><INDENT>for entry in entries_list:<EOL><INDENT>aliases_count[entry.alias] += <NUM_LIT:1><EOL><DEDENT><DEDENT>sorted_aliases_count = sorted(aliases_count.items(), key=lambda item: item[<NUM_LIT:1>], reverse=True)<EOL>if limit:<EOL><INDENT>return sorted_aliases_count[:limit]<EOL><DEDENT>else:<EOL><INDENT>return sorted_aliases_count<EOL><DEDENT>
Return a list of 2-tuples `(alias, usage_count)`, sorted by `usage_count` of aliases used in this timesheet.
Only the top `limit` aliases are returned. If `limit` is left empty, all aliases are returned.