[UI] Adapt to the removal of the Set::Statistics class

Allows for https://github.com/CocoaPods/Core/pull/207.

@alloy @kylef just want to make sure you're ok with the way I did this before merging these two PRs.