Start with a whole note and then divide it in half to get half notes. This means it takes two half notes to equal a whole note. Do the same with the two half notes and you get four quarter notes, which equals a whole note (this also means it takes two quarter notes to equal a half note).
Since notes are measured by counting, working backwards, if a quarter note is given one count, then a half note will have two, and a whole note four.