Added query to count xrefs by database.