Technology: SBB extends automated passenger counting
https://www.railwaygazette.com/in-depth/technology-sbb-extends-automated-passenger-counting/65025.article
I don't know how accurate the counting algorithm is. But, I guess train-spotters boarding and alighting trains at intermediate stations will be counted many times?