#NEWLINE# def get_string_index( self , value ) : #NEWLINE# #INDENT# assert isinstance ( self , str ) , 'Value {0!r} is not string' . format ( value ) #NEWLINE# self . strings [ value ] += 1 #NEWLINE# return 0