Edit: There is also a system called "Through coach" or Kurswagen in German, where you enter a coach in the evening, it starts as part of one train, and then, during the night, the train stops and it becomes part of another train - possibly with another change, and in the morning it arrives at your booked destination. (Of course you check the number of the coach well before you enter it, heh.)
From my experience my Nightjet left Düsseldorf to Salzburg or Vienna. It split in Nurnberg and merge with the train from Berlin (which also had 2 destinations).
Kraków, Poland with 780k inhabitants has "only" 10
https://www.openstreetmap.org/#map=18/50.06881/19.94768&laye...
The fix is not easy. But building taj mahal type trains isn't helpful. (simplistic trains might be - using the lower cost to build more is useful). Those of you watching local politics need to scream "NO EXTRAS, only the cheap reliable system done fast" at all local meetings to counter those asking for beauty.