Fix getCounts function

The examples/updates.js file was failing with an "UNKNOWN_FORMAT" error because the property names have changed.