Issue #29: Proper cleanup of getNumWordsInLanguage and ATT functions