I really doubt that you need 24 pins.
The project you are looking at uses and external ADC to read an analog temperature sensor. the DHT22 does not use an analog interface, and, even if it did, the PIC has the ADC built in, so that is 8 pins you do not need.
The LCD can be run with 6 pins...