https://hallvors.wordpress.com/2010/12/16/why-twitter-doesnt-count/
this is how they decide what events to listen to in order to update the counter:
if($.browser.mozilla){
A.push("input","keydown","keyup")
}else{
if($.browser.webkit){
A.push("textInput","keydown","keyup")
}
}