Does anybody know how to write the code to simulate the UNIX's wc command.