The United Nations ranks Brazil second in the world in gun deaths , behind only Venezuela .