Module:Count

local p = {}

function p.count (frame) local data = mw.text.split(frame.args[1], ",") local increment = frame.args[2] local i = 1 while i <= table.getn(data) do       if string.len(data[i]) > 0 then increment = increment + 1 end i = i + 1 end local result = increment

return result end

return p