Der Spiegel has an overview:

Recently published statistics show that Germany is home to a total of 5.4 million legal weapons, the fourth highest per capita number of legal firearms in the world.