Using objects for packages and resources makes this code far more maintainable

Reporting number of resources per RECORD