Step 1: Find the modulus of \(1-i\).
We know that for a complex number \(a+ib\),
\[
|a+ib|=\sqrt{a^2+b^2}
\]
Therefore,
\[
|1-i|=\sqrt{1^2+(-1)^2}
\]
\[
=\sqrt{1+1}
\]
\[
=\sqrt{2}
\]
Hence, the equation becomes
\[
(\sqrt2)^x=2^x
\]
Step 2: Rewrite in exponential form.
Since
\[
\sqrt2=2^{1/2},
\]
we get
\[
(2^{1/2})^x=2^x
\]
\[
2^{x/2}=2^x
\]
Since the bases are equal and positive, compare exponents:
\[
\frac{x}{2}=x
\]
\[
x=0
\]
Step 3: Count integer solutions.
The only integer solution is
\[
x=0
\]
Therefore, the number of integer solutions is
\[
1
\]
Step 4: Final conclusion.
Hence,
\[
\boxed{1}
\]