Max Object Count headaches

We’ve got a pretty heavy UI in our current project, and are working on systems to avoid asserting/crashing on “Maximum number of UObjects (%d) exceeded”. One of which I’d like to be able to predict if our UI is headed towards this limit by checking the current object count vs a buffer of the number of objects in a certain UWidget.

My question is this: is there an easy way of getting the number of UObjects in an instance of a Blueprint Class BEFORE allocating memory for it?

Thanks!