This page contains everything you need to perform (and understand) word and character counting: A fully functional word counter, detailed explanation of the code powering it, and a dump of the entire HTML, CSS, and JavaScript code that the tool uses.