Complex sentence: Estonia has 45 ports in the State Port Register, with a few exceptions all of them in the Baltic Sea.
Split into simpler sentences: Estonia has 45 ports in the State Port Register. With a few exceptions, all of them are on the Baltic Sea.