This doesn't sound like self-hosting, it sounds like self-operated.
Is it possible to run Counter scale on-prem against logs from HAProxy, Nginx, or Apache? That would be cool, and is the benchmark because AWStats [0] has been around for decades and works just fine.
There's also a newcomer called Plausible which has a FOSS Community Edition [1] which can be self-hosted.
[0] https://awstats.sourceforge.io/
[1] https://github.com/plausible/community-edition/
Edit: @xorcist Thank you for the recommendations, I'll check them out.