🌈 搜索
📅  最后修改于: 2022-03-11 14:54:54.346000             🧑  作者: Mango
function count(base, pattern) return select(2, string.gsub(base, pattern, "")) end print(count('Hello World', 'l'))