The S8 to Hanau crosses the Main three times (until Offenbach Ost only twice), the S9 four times:
The railway lines S8 and S9 cross the Main River in three places (except for Offenbach Ost, where they do so in only two places), and the S9 line crosses it a total of four times: