Your "dimensions" are not quite "correct". The calculation should be something like $10^{7} \frac{\hbox{atoms}}{\hbox{row}}\times 2\times 10^7 \hbox{row}=2\times 10^{14}$ atoms. In fact, atoms are objects to be counted and added, like cars or pears.
I believe I remember from a math course that the Greeks could not (apparently) abstract numbers and so would always think of "$5$" as associated to objects: $5$ apples, $5$ pebbles, etc. Thus you could add apples: $5$ apples + $5$ apples + $5$ apples is $15$ apples.
Multiplication was different and considered as a geometrical operation. A rectangle of sides $3$ m and $4$ m had an area of $3\times 4 =12\hbox{m}^2$.
As a result, they (apparently) never "discovered" the general abstract result that $a\times b=b+b+b\ldots$ ($a$ times) since the two operations were in some sense "incompatible". Moreover, since we live in $\mathbb{R}^3$, it didn't make sense to them to multiply more than $3$ numbers together.
The OP likewise would like to equate two "incompatible" operations (in the sense of the Greeks), the outcome of which numerically agree because one needs to sum all atoms of all rows rather than "multiply" atoms together.
Unfortunately, I cannot find a source to confirm this.