updated count override

Changed lines 311 and a bit onward. Removed grab to get currentHtml as it was unneeded. Changed the append to prepend so that the count appears before the buttons again. Changed the non-inline method to just use append instead of html() as it's easier, and doesn't need to do the currentHtml + "" thing, and looks more like the other if branch.