title: Display number of characters in WordPress comments
body: <p>i used this php code for limit Wordpress comments length in functions.php</p>
  
  <pre><code>add_filter( 'preprocess_comment', 'wpb_preprocess_comment' );
  
  function wpb_preprocess_comment($comment) {
      if ( strlen( $comment['comment_content'] ) &gt; 1400 ) {
          wp_die('Comment is too long. Please keep your comment under 1400 characters.');
      }
  </code></pre>
  
  <p>How to display number of available characters left to be updated as the user types? It should be some simple text as "1400 characters left" in the corner of field.</p>
  
  <p>Any suggestions welcome.</p>