Compute the number of two-digit numbers $\overline{ab}$ with nonzero digits $a$ and $b$ such that $a$ and $b$ are both factors of $\overline{ab}$.

Let's think step by step and output the final answer within \boxed{}.
user