let $a$ and $n$ are natural numbers and $A=a^n$. Then how we can find the numbers of digits of $a^n$.
For example $A= 2^{101}$. Then we $2^{10}=1024\cong=1000=10^3$. So $2^{101}=2\times (2^{10})^{10}\cong2\times (10^3)^{10}=2\times 10^{30}$. so $2^{101}$ has almost 31 digits.
But what is the exact numbers of digits of $2^{101}$?
A number $a$ has $n$ digits if and only if $$10^{n-1} \leq a <10^n$$
This is equivalent to $$n-1 \leq \log_{10} (a) < n$$
or $$n= 1+ \lfloor \log_{10}(a) \rfloor$$ where $\lfloor . \rfloor$ denotes the integer part.
In your example $$\log_{10}2^{101} =101 \cdot \log_{10}(2)$$
Now use a logarithmic table to find $\log_{10}(2)$.