Correctly display puzzle num of total in custom scripts.

This should optimize one of our [most time consuming database operations (Level#find)](https://rpm.newrelic.com/accounts/501463/applications/3787364/transactions#id=443593870)