#NEWLINE# def GetClientsCounts( self ) : #NEWLINE# #INDENT# collections = aff4 . FACTORY . MultiOpen ( [ self . all_clients_collection_urn , self . completed_clients_collection_urn , self . clients_errors_collection_urn ] , mode = 'r' , token = self . token ) #NEWLINE# collections_dict = dict ( ( ( coll . urn , coll ) for coll in collections ) ) #NEWLINE# def CollectionLen( collection_urn ) : #NEWLINE# #INDENT# if ( collection_urn in collections_dict ) : #NEWLINE# #INDENT# return collections_dict [ collection_urn ] . CalculateLength ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# #UNINDENT# all_clients_count = CollectionLen ( self . all_clients_collection_urn ) #NEWLINE# completed_clients_count = CollectionLen ( self . completed_clients_collection_urn ) #NEWLINE# clients_errors_count = CollectionLen ( self . clients_errors_collection_urn ) #NEWLINE# return ( all_clients_count , completed_clients_count , clients_errors_count )