How to count the amount of words in a text file in Lua
snippet in lua

How to count the amount of words in a text file in Lua

user5459

_,n = s:gsub("%S+","")
print(n)