Task: Text to Code
Input (English): SQL: SELECT Count ( DISTINCT Code2 ) FROM country WHERE IndepYear < 1930
Feedback: Replace code 2 in country with language in countrylanguage and Ensure corresponding is official equals T .
Output (English): SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE  IndepYear  <  1930 AND T2.IsOfficial  =  "T"