GetNumPrograms of hosted plugin

I’m working on a VST2 plugin that hosts VST3s. Once a VST3 has been loaded, Id like to return the number of programs for that hosted VST3 instead of the default value I return when no VST3 has been selected. This is what I’m thinking:

int MyVST3HostPlugin::getNumPrograms()
{
const ScopedLock lock(mutex);

if (hostedVST3 != nullptr)
    return hostedVST3->getNumPrograms();
return 1;

}

I am also developing the host (not using JUCE or C++) that will use this plugin, so I can create a custom solution in my plugin and host.

What are my options?