Added logic for calculating statistics of medals for one of more competitions events