# getNumberOfPodDefinitions method

1. @override

int getNumberOfPodDefinitions()
override

Returns the total number of pods registered.

This method provides a count of all pods currently registered, which is useful for monitoring, capacity planning, and testing.

Returns the total number of pods in the registry. Returns 0 if the registry is empty.

Example:

    final count = registry.getDefinitionCount();
    print('Total pods registered: $count');

    if (count == 0) {
      print('Registry is empty - initializing default pods...');
      initializeDefaultPods(registry);
    }

## Implementation

    @override
    int getNumberOfPodDefinitions() {
      if (_configurationFrozen) {
        return _frozenPodDefinitionNames.length;
      }

      return getPodRegistry().getNumberOfPodDefinitions();
    }