There's more...

Using an expander chip such as the MCP23017 provides an excellent way to increase the amount of hardware connectivity to the Raspberry Pi while also providing an additional layer of protection (it is cheaper to replace the expander chip Raspberry Pi).