http://biinsight.com/count-table-references-and-table-foreign-keys/
Count tables’ references and tables’ foreign keys