They're putting an awful lot of faith in that counter though if they allow 255 and 257 that means that they expect to never miscount an axle.
Do bogies with uneven number of axles even exist?
Voilà.
(Not Swiss, just the first train car I could find with 3 axels)
You can definitely build long enough trains to blow past the limit several times, coal and ore trains are routinely 100+ cars long (with each car having at least 4 axles), the record is a BHP Billiton Iron Ore train of 682 cars and 8 locomotives.
[0]: http://bazonline.ch/schweiz/standard/Zwei-Haende-bremsen-den... (German)
With ETCS [1] there are no "fixed" physical block segements anymore. They are simulated in software and allow a much higher densitiy of trains and also longer trains. While SBB is highly motivated to roll out and migrate their legacy signalling systems, it's still a long way. The new Gotthard Base Tunnel is already built ETCS-only.
1,2,3,...,254,255,0,1,2,3...
1 byte.
Although it is mentioned in the comments to the linked article that it is probably an electro-mechanical counter, so I am imagining a four wheel encoder with each wheel having 4 positions (although could be 8 wheels with 2 positions per wheel), electrically readable, and reset-able.
Ditto for 255 with a single 'bounce'.
In the old times there was a manned caboose car at the end which job was to ensure the completeness of the train (and that switches are cleared).
Here's an example of such an SBB car decommissioned some centuries ago http://www.bahnbilder.de/bilder/gueterwagen-266906.jpg
Video (1986) https://www.youtube.com/watch?v=ev4szZ4iNTY
The US probably has a different term.
Even in this 1955 fire training video you can see they care more about the locomotive than the safety of the crew: https://www.youtube.com/watch?v=hkUQ3rTfU4s
tldw: crew were expected to enter the confined area of the engine room in the middle of a fire and turn at least two valves (that have complex interactions with each other) filling the same confined area with CO2.
Still, given that the warning was issued quite explicitly it would seem that the designers of the operations guide definitely thought it was possible to have a train that long. Otherwise, why bother with the warning?
I don't think that conclusion is warranted.
As soon as there are lives on the line the amount of thinking about undefined situations skyrockets. Even so, given that the system fails 'positive' (as in: it can't register 'no train' when there is a train, it can only register 'train' when there is none) I'm quite impressed with the foresight to even think about that exact possibility occurring.
Another field where you see this kind of planning is in medical electronics and software systems.
I've also bought some medical electronics surplus for parts in the past and it was absolutely bullet-proof. Top quality.
Edit: Im just taking an infusion pump to be serviced. This model is well liked. However when you want to deliver a drug bolus at a very specific time point during an MR scan the pump may deliver it, or it may give and error as its timed out. There is no way to tell prior to pressing "bolus". Not ideal.
Maybe sometimes...
Decades, perhaps? (A decade is ten years; a century is one hundred.)
It's not, but considering the context going above would mean going through the limit which would be dangerous, during exit the counter would mark a railroad section as unoccupied before underflowing back to occupied. It might also have interesting failure modes during entry.
Along with the steep gradients, you have to remember there's far more passenger services on the lines, so pathing constraints force freight services to be shorter (you can't have them accelerating that much slower than passenger services, or they start taking up a disproportionate amount of capacity on the line).
Was that itself a response to the exactly-256 problem, "plus a margin of safety"?
Here's Union Pacific's longest container train. 295 freight cars, 9 locomotives. Four axles per car. So that's over 1180 axles. A more typical US train is 100 cars and a few locomotives; over 400 axles isn't uncommon. 256 would be an inadequate axle limit in the US.
(There are longer trains in Australia, but they're usually coal or mineral hauls on dedicated track in flat country. This was a run from Los Angeles to Texas on mainline track.)
FWIW, a lot of freight wagons around Europe are on bogies (with two axles per bogie) where they would be two-axle wagons in the US; I presume a lot of this is down to comparatively higher speeds of freight in Europe as a result of pathing around passenger services. Plenty of freight around Europe runs at up to 160km/h (~100mph), and that sort of speed is fast for a passenger service in the US. Obviously, this doubles the number of axles per wagon (though decreasing axle weight and hence track loading), further shortening the length of a 256 axle train.
It would appear the maximum length of a train in Switzerland is 1500 meters which would push it well above 256 axles.
At the same time, that was a run through the Gotthard Base Tunnel, and running onto similarly modernised infrastructure, and hence less likely to have 40 year old axle counters in use.
The quality of the software the world depends on is so low. We can do so much better and hopefully better will be demanded of us as the field matures.