implement the wc command

wc - print line counts for files.
Print line counts for each FILE, and a total line for them.
With no FILE specified, read file paths but not contents from standard input.