We had four boxes when our three cats were inside.

Even now when they have outside access, I still keep 2 clean litterboxes set up, just in case of illness.