The answer to this question will depend on what model of Raspberry Pi you are using. Some will be able to handle more sensors than others.  For instance, the Raspberry Pi 2 can handle 26 sensors, but a more modern version will be capable of managing many more.