If you break a line of length 1 into self similar bits of length 1 m there are m1 bits and we say the dimension of the line is 1.

If you break up a square of side 1 into self similar squares with edge 1 m then there are m2 smaller squares and we say the dimension is 2.

If you break up a cube of side 1 into self similar cubes with edge 1 m then there are m3 smaller cubes and we say the dimension is 3.

In each case we say the magnification factor is m meaning that we have to scale the lengths by a factor of m to produce the original shape. So the formula is:
numberofbits=(magnificationfactor )d

where d is the dimension, i.e. n= md .