I used two for each axis, one doubles as a homing and limit, the other is only a limit. You can use one for each axis though. That would save a few bucks and save IO. In fact, I think you can have one switch for each axis, wire them in series, and only use one input pin for all of them.
Brett