Neos.Media/Classes/Domain/Service/AssetService.php
public function getUsageCount(AssetInterface $asset)
    {
        $usageCount = 0;
        /** @var AssetUsageStrategyInterface $strategy */
        foreach ($this->getUsageStrategies() as $strategy) {
            $usageCount += $strategy->getUsageCount($asset);
        }

        return $usageCount;
    }
public function getUsageCount(AssetInterface $asset)
    {
        $usageCount = 0;
        /** @var AssetUsageStrategyInterface $strategy */
        foreach ($this->getUsageStrategies() as $strategy) {
            $usageCount += $strategy->getUsageCount($asset);
        }

        return $usageCount;
    }
public function getUsageCount ( AssetInterface $ asset ) { $ usageCount = 0 ; /** @var AssetUsageStrategyInterface $strategy */ foreach ( $ this -> getUsageStrategies ( ) as $ strategy ) { $ usageCount += $ strategy -> getUsageCount ( $ asset ) ; } return $ usageCount ; }
Returns the total count of times an asset is used.

@param AssetInterface $asset
@return integer
Returns the total count of times an asset is used .