def __replace_names(sentence, counts):
if sentence is not None:<EOL><INDENT>while sentence.find('<STR_LIT>') != -<NUM_LIT:1>:<EOL><INDENT>sentence = sentence.replace('<STR_LIT>', str(__get_name(counts)), <NUM_LIT:1>)<EOL>if sentence.find('<STR_LIT>') == -<NUM_LIT:1>:<EOL><INDENT>return sentence<EOL><DEDENT><DEDENT>return sentence<EOL><DEDENT>else:<EOL><INDENT>return sentence<EOL><DEDENT>
Lets find and replace all instances of #NAME
    :param _sentence:
    :param counts: