I think you can get a better solution for this using only javascript / jQuery. The use of C # will be associated with the need to use AJAX to re-render the tag every time.
var characterLimit = 4000
var charLeft = characterLimit - $(".textbox").val().length
$(".label").html(charLeft);
source
share