https://learn.microsoft.com/es-es/dotnet/api/microsoft.win32.registrykey.valuecount?view=netframework-4.8.1&viewFallbackFrom=net-8.0
RegistryKey.ValueCount Property (Microsoft.Win32) | Microsoft Learn
Retrieves the count of values in the key.
propertymicrosoftlearn