#NEWLINE# @ h . memoize #NEWLINE# def __len__( self ) : #NEWLINE# #INDENT# '\n        :return: number of rows in the table\n        ' #NEWLINE# c = self . _connection . cursor ( ) #NEWLINE# c . execute ( ( 'select count(*) from `%s`.`%s`' % ( self . _db , self . _name ) ) ) #NEWLINE# self . _count = c . fetchall ( ) [ 0 ] [ 0 ] #NEWLINE# return self . _count