by @github
A JavaScript function to add live paragraph-, word- and character-counting to an HTML element.