mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
7 lines
132 B
Nim
7 lines
132 B
Nim
import strutils
|
|
|
|
var word_count = 0
|
|
for line in stdin.lines:
|
|
for word in line.split(","):
|
|
word_count += 1
|
|
echo (word_count)
|