The math:
Plants per row = floor(Bed Length ÷ In-row Spacing)
Rows = floor(Bed Width ÷ Between-row Spacing) · Total = Plants per row × Rows
Total plants that fit
4
Tomato (determinate)
Layout
4 × 1
plants per row × rows
32 sq ft bed
Scaled up: ~7,260 plants/acre · ~17,940 plants/hectare
Results assume a full rectangular bed with no paths or borders.