Using a shift register like the 74HC164 you can drive a 7-seg display using only 2 lines from the processor.
With some smart wiring, you can even count to 16 using 8 bits and 1 74HC164 (just use bit 7 to set the decimal).