Brain Candy: A Nerdy Riddle for Nerds that Eat Other Nerds

Welcome back to Brain Candy! Let it be known that nerds are the best candy, and also the best people. I pulled today's riddle off an article written by S. Abbas Raza after he went to a terrible dinner party and decided you should have to solve riddles before you're granted a "cocktail party conversational permit." He sounds fun.

Riddle me this:

You are given eight coins and told that one of them is counterfeit. The counterfeit one is slightly heavier than the other seven. Otherwise, the coins look identical. Using a simple balance scale, can you determine which coin is counterfeit using the scale only twice?

If you can't solve it, I will still talk to you at parties.

*Beware of the comments, there be spoilers*