How do I modify the basic counter so in the html file I can define the starting value?

In the counter app there is a HTML fragment that invokes PureScript.
Guide - Halogen Guide

<script src="./index.js" type="module"></script>

How do I modify it so I can configure the initial state in the HTML file and can change the initial state without changing the code of PureScript counter?

Lucas DiCioccio’s Blog - How I write PureScript web-apps: Part-III

has example

<script
   scr="/js/my-app.js"
   data-my-app--api-endpoint="https://example.com/"
   data-my-app--api-key="0xdeadb33f"
>

this seems to do what I need, but how do I do it in the context of basic halogen counter?

I had enough of this nonsense.

I will try flame.

this is getting closer, but still have errors i do not understand

I reached the point where I can read the flags, as discussed in other threads.

After a break, I will have to create a working example and maybe ask more questions on improving it.