The Firefighter

A firefighter wants to climb onto a roof.
He is standing on the middle rung of a ladder.
He climbs up 3 rungs, feels unwell, and goes back down 5 rungs.
Feeling better, he climbs up 7 rungs.
After a rest, he climbs the last 6 rungs before reaching the roof.
Question:
How many rungs are there on this ladder?
Answer:
There are 23 rungs on the ladder.
The middle rung is rung 12.