llCountBadge.textContent = datasets.length;
                mainCountBadge.textContent = mainCatalogDatasets.length;
                communityCountBadge.textContent = communityCatalogDatasets.length;
            }

            function extractThematicGroups() {
                // Extract unique thematic groups
                const thematicSet = new Set();
                datasets.forEach(dataset => {
                    if (dataset.thematic_group) {
                        thematicSet.add(dataset.thematic_