Added Translator::countLanguages() method.