Is it possible to use jQuery to count how many characters are in, for example, an , and if the amount is greater than XX characters, apply a class to
Why not select your element into a variable and get its length?
var length = $('li').html().length;
From here, just check if the value on length is greater than the value you're comparing to and use .addClass()