#NEWLINE# def get_count( self , using ) : #NEWLINE# #INDENT# '\n            Performs a COUNT() query using the current filter constraints.\n            ' #NEWLINE# obj = self . clone ( ) #NEWLINE# obj . add_annotation ( Count ( 'pk' ) , alias = 'x_sf_count' , is_summary = True ) #NEWLINE# number = obj . get_aggregation ( using , [ 'x_sf_count' ] ) [ 'x_sf_count' ] #NEWLINE# if ( number is None ) : #NEWLINE# #INDENT# number = 0 #NEWLINE# #UNINDENT# return number