rem Liczy wiersze, słowa i znaki w pliku
dim word$(1)
open #1, peek$("argument"), "r"
while not eof(1)
  line input #1 line$
  lines = lines + 1
  words = words + token(line$, word$(), " ")
  chars = chars + len(line$)
wend
close #1
print "wiersze: ", lines, ", słowa: ", words, ", znaki: ", chars
