You must choose a PIC who'll provide you at least the code space you need and the i/o you need.

In case you need about the same i/o than the 8051 have... PIC16F870,16F877 or else PIC that have close to 32,33 i/o with sufficient code space.