 count if the content swap is for channel info
                let sswe_id = e.detail.elt.getAttribute('sse-swap')
                if (sswe_id && sswe_id.endsWith("-info") ) {
                    updateRecordingCount();
                }
            })

            // Initial count on page load
            document.addEventListener("DOMContentLoaded", function() {
                updateRecordingCount();
            });

            document.body.querySelectorAll("textarea").forEach((textarea) => {
         