Do you know if there is an easy way of counting paragraphs in a textarea using nothing but javascript?
Thanks,
Try this one:
document.getElementById('textarea_id').value.replace(/\n$/gm, '').split(/\n/).length;
This will ignore empty strings (see @Sean Vieira answer)