summaryrefslogtreecommitdiff
path: root/ltok
blob: c90823e43d70e06c120890bd0fbc58cfb9834bf5 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/ruby

STDIN.set_encoding 'utf-8'
STDOUT.set_encoding 'utf-8'

while line = STDIN.gets
  puts line.strip.split(/\s/).size
end