Sorry, but I'd have to charge you some money to do this one. There is a flaw in your logic/comparison technique - total number of objects may be the same among instances, but WHAT those objects are could be entirely different.

You could spool out some queries, then use diff in UNIX to compare the files (you'd have to clean up the headers, titles, stuff like that first).