draw game on lichess after 2 repetitions? I was playing this game with white

https://lichess.org/INsUhHEO

I was losing, so I was happy to see the 3-position draw button appearing, which I clicked.

But after, reviewing the game, I couldn't see a reason for that to happen, I see only 2 repetition...

Where am I wrong?

Thanks
The same position appeared after 56. Kf8, 58. Kf8 and 60. Kf8 -- 3 repetitions of the position (not moves).