how would you count the number of characters or words from a sentence that the server sends to the client. Can you provide a quick example of code on how to do that(TCP or DUP)?