It's quite likely that you need to update Ren'py, since this is a newer configuration variable.
Otherwise, you could also try removing "define config.lint_character_statistics = False" on line 33, since it's not actually needed for the counter to work.