13 lines
223 B
Lua
Executable File
13 lines
223 B
Lua
Executable File
#!/usr/bin/env luajit
|
|
|
|
local count = 0
|
|
local previous
|
|
for number in io.lines(arg[3]) do
|
|
number = tonumber(number)
|
|
if previous ~= nil and previous < number then
|
|
count = count + 1
|
|
end
|
|
previous = number
|
|
end
|
|
print(count)
|