Counting problems and semisimple groups