How does a tree diagram relate to the fundamental counting principle? Which is more convenient? Why?

How does a tree diagram relate to the fundamental counting principle? Which is more convenient? Why?