Words and Characters counter

Calculate the number of words and characters in a piece of text
Input
Text
Output