A detector address map assigns one index to every pixel slot in the grid, so the frame size is rows times columns. With 4 rows and 5 columns one frame holds 4 times 5 = 20 indexed pixel slots exactly for the stated toy detector ledger; real detectors have dead pixels, gain variation, dark current, geometric distortion, and measurement uncertainty.
A detector frame is an indexed grid of physical measurements. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.