The train has left the station, but will count towards the 'Train count' until the last carriage has passed the station. The text reads 'Reads the number of trains going to this particular train stop. Includes the stopped train'. I'd argue that the train pictured is leaving the station, and thus should not be counted in this figure. The 'Read train contents' doesn't include the train once it leaves.
The attached blueprint should be an on-demand harvester for Gleba. When a train is approaching or at the station, the harvesters should run until the threshold (1.2k) is found in between chests and train. The train then waits for the harvest to load. The problem can be seen when the train leaves the station. The threshold isn't reached as the cargo has left, and there is still a train listed as 'going to or stopped'. This means that the harvesters continue to cycle when they have nowhere to load material.
The count should read the trains going to, or stopped at. Once the train is leaving, signals can control any newly arriving trains to prevent a crash.
2.1.19 - 'Read train count' includes the train leaving the station
Re: 2.1.19 - 'Read train count' includes the train leaving the station
Welcome to the forums. This is intended. The train count will stay there until the train has fully left the station to prevent deadlock situations where the train can't leave fully, but another train has decided to go to that station in the meantime - possibly blocking the original train from leaving entirely.
If you want to get ahold of me I'm almost always on Discord.

