allow optional overriding of total count for paginator