Start by adding this HTML to wherever you want the count to display on the page:
<span class="containerCount1"></span>
Note that the "1" should be replaced with the number of category to display at this position.
Then add this script to the Categorization question:
<script>
$(document).ready(function(){
$('#[% QuestionName() %]_div .sortable').on('sortstop', function(){
$('#[% QuestionName() %]_div .rankedSortable').each(function(){
var cat = $(this).data('col');
var count = $(this).children().length;
$('.containerCount' + cat).text(count);
});
});
$('#[% QuestionName() %]_div .sortable').trigger('sortstop');
})
</script>