This is essentially impossible to do because of the dynamic nature of Ignition in any other way than a "backwards" count via reference tracking at runtime, akin to the Tag Reference Tracker. We don't currently have any plans to add such a thing for databases, but it's a compelling idea that folks have brought up before.