#NEWLINE# def object_totals( self ) : #NEWLINE# #INDENT# '\n        Get info about database statistics.\n\n        Returns:\n            census (dict): A dictionary `{typeclass_path: number, ...}` with\n                all the typeclasses active in-game as well as the number\n                of such objects defined (i.e. the number of database\n                object having that typeclass set on themselves).\n\n        ' #NEWLINE# dbtotals = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# typeclass_paths = set ( self . values_list ( 'db_typeclass_path' , flat = True ) ) #NEWLINE# for typeclass_path in typeclass_paths : #NEWLINE# #INDENT# dbtotals [ typeclass_path ] = self . filter ( db_typeclass_path = typeclass_path ) . count ( ) #NEWLINE# #UNINDENT# return dbtotals