# -*- coding: utf-8 -*-
import io, sys, os, re
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
idx=open("index_main.html",encoding="utf-8").read()
seg=idx[idx.find("const PROGRAMS="):idx.find("const CATD=")]
catd=idx[idx.find("const CATD="):idx.find("const VERIFIED_DETAILS=")]
for kw in ["operations-research","health-systems","quantitative-computational","industrial-engineering","supply-chain","gatech-or","gatech-hs","gatech-qcf","gatech-ie","gatech-sce","gatech-ms-or","gatech-ms-hs","gatech-ms-qcf","gatech-ms-ie","gatech-ms-sce"]:
    print(f"PROGRAMS {kw!r}: {seg.count(kw)}  CATD: {catd.count(kw)}")
