Query Run
SELECT COUNT(*) FROM page JOIN categorylinks ON page_id = cl_from WHERE... 4 years ago
SELECT COUNT(*) FROM page JOIN templatelinks ON page_id = tl_from JOIN... 4 years ago