My stream setup is open source on GitLab https://gitlab.com/NickBusey/CodingStream
Here's an article I used in my early days to help get going https://medium.com/@suzhinton/my-twitch-live-coding-setup-b2...
I’ve considered doing counting like this before but didn’t really know where to get started.