def _format_obj_count(objects):
result = []<EOL>regex = re.compile(r'<STR_LIT>')<EOL>for obj_type, obj_count in objects.items():<EOL><INDENT>if obj_count != <NUM_LIT:0>:<EOL><INDENT>match = re.findall(regex, repr(obj_type))<EOL>if match:<EOL><INDENT>obj_type, obj_name = match[<NUM_LIT:0>]<EOL>result.append(("<STR_LIT>" % (obj_type, obj_name), obj_count))<EOL><DEDENT><DEDENT><DEDENT>return sorted(result, key=operator.itemgetter(<NUM_LIT:1>), reverse=True)<EOL>
Formats object count.