Así? Código PHP:
<html>
<head>
<title>Untitled</title>
<script>
function contar(esto){
cuantas=esto.length
if(cuantas>99){document.forms[0].cosa.value=esto.substring(0,99)}
document.forms[0].total.value=cuantas;
}
</script>
</head>
<body>
<form>
<textarea cols="20" rows="5" name="cosa" onkeydown="contar(this.value)"></textarea>
<input type="text" name="total" id="total" size="3" maxlength="3" value=0 readonly>
</form>
</body>
</html>