def METHOD_NAME(configure_local_internal_options_module, get_configuration, configure_environment,
                               restart_syscheckd):
    '''
    description: Check if the 'wazuh-syscheckd' daemon detects the value of the 'registries' tag, which corresponds to
                 the maximum number of entries to monitor from the 'db_entries_limit' option of FIM. For this purpose,
                 the test will monitor three keys, and the limit for registries to monitor, will change. Then it will
                 check that the FIM event 'maximum number of entries' generated has the correct value of registries.
                 Finally, the test will verify that, in the FIM 'entries' event, the number of entries and monitored
                 values match.
    wazuh_min_version: 4.4.0
    parameters:
        - configure_local_internal_options_module:
            type: fixture
            brief: Set the local_internal_options for the test.
        - get_configuration:
            type: fixture
            brief: Get configurations from the module.
        - configure_environment:
            type: fixture
            brief: Configure a custom environment for testing.
        - restart_syscheckd:
            type: fixture
            brief: Clear the Wazuh logs file and start a new monitor.
    assertions:
        - Verify that the FIM event 'maximum number of entries' has the correct value
          for the monitored entries limit of the 'registries' option.
    input_description: A test case (fim_registry_limit) is contained in external YAML file (wazuh_conf.yaml)
                       which includes configuration settings for the 'wazuh-syscheckd' daemon. That is combined
                       with the limits and the testing registry key to be monitored defined in this module.
    expected_output:
        - r".Maximum number of registry values to be monitored: '(\\d+)'"
        - r".*Fim registry entries count: '(\\d+)'"
    tags:
        - scheduled
    '''
    registry_limit = get_configuration['metadata']['registries']
    for key in (MONITORED_KEY, MONITORED_KEY_2, MONITORED_KEY_3):
        reg_handle = RegOpenKeyEx(registry_parser[WINDOWS_HKEY_LOCAL_MACHINE], key, 0, KEY_ALL_ACCESS | KEY_WOW64_64KEY)
        # Add values to registry plus 1 values over the registry limit
        for i in range(0, int(registry_limit) + 1):
            modify_registry_value(reg_handle, f'value_{i}', REG_SZ, 'added')
    # Look for the file limit value has been configured
    registry_limit_value = wazuh_log_monitor.start(timeout=global_parameters.default_timeout,
                                                   callback=generate_monitoring_callback(CB_REGISTRY_LIMIT_VALUE),
                                                   error_message=ERR_MSG_REGISTRY_LIMIT_VALUES).result()
    # Compare that the value configured is correct
    assert registry_limit_value == registry_limit, ERR_MSG_WRONG_REGISTRY_LIMIT_VALUE
    # Get the ammount of entries monitored and assert they are the same as the limit and not over
    key_entries = wazuh_log_monitor.start(timeout=monitor_timeout,
                                          callback=generate_monitoring_callback(CB_COUNT_REGISTRY_ENTRIES),
                                          error_message=ERR_MSG_FIM_REGISTRY_ENTRIES).result()
    assert key_entries == registry_limit, ERR_MSG_WRONG_NUMBER_OF_ENTRIES