protected function getDeprecatedCounter(ProjectDescriptor $project)
    {
        $deprecatedCounter = 0;

        /** @var DescriptorAbstract $element */
        foreach ($project->getIndexes()->get('elements') as $element) {
            if ($element->isDeprecated()) {
                $deprecatedCounter += 1;
            }
        }

        return $deprecatedCounter;
    }