Dynamic counter?

   In a form I have a text area T and a disable text field C (for counter).    C must show dynamically how many characters have been typed in T. Should    I go in for a Javascript solution (or Ajax) or is there any other way?

I needed something similar a few months ago, and wrote some simple helpers: http://snippets.dzone.com/posts/show/2875