Hours start with your training. ICF only counts coaching you did after your coach training began. Its education page defines that start as a course of at least 30 hours, with at least 24 of them on the ICF Core Competencies. Coaching you did before then doesn't count, however good it was.
Paid hours carry most of the total. For the ACC, 75 of your 100 hours must be paid. The PCC needs 450 paid out of 500, and the MCC 2,250 out of 2,500. Pro bono sessions are a good way to start, but they can only make up the difference between the paid minimum and the total.
Recent hours matter. ACC applicants need 25 hours (paid or unpaid) inside the 18 months before they apply, and PCC applicants need 50. If you trained years ago and stopped coaching, the planner shows the gap under "Hours in the last 18 months".
Mentor coaching may already be done. ICF says its Level 1 and Level 2 programs fulfil the ACC mentor requirement, Level 2 programs the PCC's and Level 3 programs the MCC's. Everyone else needs 10 hours with a qualified mentor coach over at least three months; 3 of the hours must be individual sessions and the other 7 can be in a group of 10 or fewer. Start early, because you can't finish sooner than three months after your first session. The online training guide compares program formats.