local p = {} function p.getWorkCount(frame) local category = frame.args.category or '' local pages = mw.site.stats.pagesInCategory(category) return tostring(pages) end function p.main(frame) return p.getWorkCount(frame) end return p