Maxwell's count is the difference between two dimensions, and it knows neither of them separately. A frame can satisfy it exactly and still both fold and be prestressable — and when it does, the second of those is what stops the first.
All ladders