public int getNumTranslationPairs() {
        return cache.size();
    }
Get the number of different source/target translation pairs this CachedTranslator
currently has in its cache.

@return Number of translation source/target pairs in this CachedTranslator's cache.
@since Tika 1.6
tika-translate/src/main/java/org/apache/tika/language/translate/impl/CachedTranslator.java