$('span.trash-count').each( function() {
            var a = $(this), n = getCount(a) + trash;
            updateCount(a, n);
        });