Module:Count

local p = {}

function p.staff( frame ) title = mw.title.new('Template:Staff and contractors') page_text = title:getContent local _, heads = string.gsub(page_text, '| head', '') local _, members = string.gsub(page_text, '{{staff member', '') -- Do not count Rory etc.: mascots = 3 return heads + members - mascots end

return p