you can get by using three. You need one for the zero point of each axis.
The other three are for the maximum points. they can be defined in code if necessary, but it's more fail-safe to have endstops.
-----------------------------------------------
Wooden Mendel
Teacup Firmware