/Engine/Source/Runtime/Core/Public/ProfilingDebugging/InstanceCounter.h
class UFoo { public: etc etc protected:
    COUNT_INSTANCES(FTypeIWantToCount)
};
class FInstanceCountingObject
bool
DoLog
Log increment/decrement?
FName
Name
Name we are tracking