A pure JavaScript textarea counter.