import re
with open('index_main.html','r',encoding='utf-8') as f:
    html = f.read()
new_ids = ['gatech-ae-phd','stanford-me-phd','berkeley-me-phd','notre-ame-phd','ucla-mae-phd']
for nid in new_ids:
    cnt = html.count('details/'+nid+'.html')
    pid = html.count('{id:"'+nid+'"')
    print(f'{nid}: PROGRAMS entry={pid}, VD ref={cnt}')
# 看 VD 数组结尾
idx = html.rfind('notre-ee-phd.html')
print('--- VD end context (after notre-ee-phd) ---')
print(repr(html[idx:idx+300]))
