Charlieplexing

If you want just 9 LED's you could just use 9 pins no need to get complex. The simplest way to get higher numbers is to use a shift register.

Mark