Little script for getting the following result.
It will add the total list items of the current library or list in your paging element.
///
///
///
///
///
///
///
///
///
$(document).ready(function () {
ExecuteOrDelayUntilScriptLoaded(ready, "sp.js");
function ready() {
var listID = SP.ListOperation.Selection.getSelectedList();
if (listID != null) {
var context = new SP.ClientContext.get_current();
var web = context.get_site().get_rootWeb();
var list = web.get_lists().getById(listID);
context.load(list);
context.executeQueryAsync(function (sender, args) {
var count = list.get_itemCount();
var totaaltext = $(".ms-paging").text() + " / ( " + count.toString() + " )";
$(".ms-paging").text(totaaltext);
}, function (sender, args) { });
}
}
});