Access pagination number of records picklist via javascript

I figure I can use javascript to trigger a change to the above picklist and then just hide that picklist via css but I was wondering if there was an approach that was a little less hacky…