How few times can you weigh 9 identical cookies on a balance scale to find the one with a gold ring inside? The answer is 2, but how?

If you wish to add your answer to this question of the day, please add it to the comments section.