I came across a nice jQuery plugin for limiting number of char entered in input or textarea element called Charlimiter.
There is also a option for auto generated counter or you can define your own.
Tested it and can confirm them it works briliantly in the latest versions of Firefox, Chrome, Opera and IE.
Anyway here is the link: Charlimiter, so check it out.
New features today 😀