I am trying to count the number of occurrences that a certain code shows up in a particular column in my dataTable, powered by AJAX.
I suppose there are two ways to go about it.
1) I can add another JSON element with my sEcho, iTotalRecords, iTotalDisplayRecords, aaData, and call it .... myCountCode.
2) I can develop some client side JS to count it after every AJAX request.
The problem is that I don't know how to go about either one on the client side. Could someone show me the way in JS?