The diversity of coins in the Middle Ages