what is the total number of medals for all the countries ranked fourth?
8