Logarithms and laws of exponents

Let and

If are such that

then is equal to __________.


The answer is a non-negative integer.