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.
Registered users can post here. Sign in or register to post.