I'm using the script MixItUp for filtering and sorting nodes in xml files. I have a script for counting the nodes which changes upon filtering - and the count changes as it should. What the script (read: I) don't accomplish is the correct singular or plural unit after the count.
My script looks like this:
Well, you need to conditionally output the 's', which you're not currently doing.
$('.mixcount').html(state.totalShow+' player'+(state.totalShow !== 0 ? 's' : ''));