Make the Registry object iterable and countable

This enables a `Registry` object to be counted and iterable via the `count()` function and through a `foreach` loop.