select substr(strinfotype,1,1),count(*)
from a group by substr(strinfotype,1,1);