SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  "Afghanistan" AND IsOfficial  =  "T"
How many official languages are spoken in Afghanistan?
SELECT COUNT ( * ) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = `` Afghanistan '' AND IsOfficial = `` T ''
select count ( * ) from country as t1 join countrylanguage as t2 on t1 . code = t2 . countrycode where t1 . name = value and isofficial = value
How many official languages are spoken in Afghanistan ?