public function getTotalMetrics(
        Project $project,
        array $domains = [],
        array $languages = []
    ) : array {
        $metrics = [];
        $masterLanguage = $project->getMasterLanguage();
        $languages = empty($languages)
            ? $project->getAvailableLanguages()
            : $languages;

        $languages = array_intersect(
            $languages,
            $project->getAvailableLanguages()
        );
        unset($languages[$masterLanguage]);

        $masterKeys = $project->getKeys(
            $domains,
            [$masterLanguage]
        );
        $masterCount = count($masterKeys);
        $metrics[$masterLanguage] = $masterCount;

        foreach ($languages as $language) {
            $languageKeys = $project->getKeys($domains, [$language]);
            $existentLanguageTranslations = array_intersect(
                $languageKeys,
                $masterKeys
            );

            $metrics[$language] = count($existentLanguageTranslations);
        }
        arsort($metrics);

        return $metrics;
    }