Glad to see this is working. However, I noticed a few things that may want to adjust.
Firstly, api.getConfigurator returns a Promise which means you must wait for the promise to resolve before accessing the result (the configurator API in this case).
You can do so easily by making your function an async and await the result.
(async function () {
var c = await api.getConfigurator();
Secondly, it appears setting the translation is the only thing that requires a script. You may be able to simplify things by creating a rule with no conditions (i.e. one that always fires) with actions that set the count.