There is a public index of forenames and surnames which I learned about when I was with my pregnant wife, and back then I was obsessively searching for my/our surname to see it increase by one when our newborn was registered and became "official".
Apparently within the whole of Finland there 22 men with the same surname as me, and 25 women. 21 of these people are in Finland and 26 are abroad but known.
Interestingly if I go to the forename search and look for people named "Steve" there are < 5 women with that name (i.e. non-zero, but the number masked for privacy reasons):
https://nimipalvelu.dvv.fi/en/forename-search?name=Steve
I'm curious about the origin there, though of course I've seen Steve -> Steffan -> Stephany, and similar translations in the past.
Looks like Europe has several countries with legal requirements, although the trend there is moving the other direction, plus Chile.