local p = function p.count(frame) local username = frame.args[1] --for now api output should be passed local query = mw.uri.encode(username, QUERY) local result = username --for now, will eventually be changed to real result local decode = string.match(result, 't..(%d+)') return decodeendreturn p