#NEWLINE# def count( self , qry_args = None ) : #NEWLINE# #INDENT# 'Execute a COUNT() possibly based on a WHERE clause\n\n        :param qry_args: query arguments to form WHERE clause\n        :return: integer result from COUNT()\n        ' #NEWLINE# ( where , params ) = self . where_clause ( qry_args ) #NEWLINE# row = self . db . fetchone ( ( ( 'SELECT COUNT(*) FROM ' + qry_args . from_clause ) + where ) , params ) #NEWLINE# self . db . rollback ( ) #NEWLINE# return row [ 0 ]