Counting words, line and bytes in an input

I want to write a C++ program where the input counts the lines, words, and bytes without argument. And also an option to count the unique words using the --uwords.Can someone please help me.
Topic archived. No new replies allowed.