PIC16f877 have 40 pins and 8k code memory,
and PIC18f452 also has 40 pins and 32K code memory

these two PICs you can use for lots of projects.