CMIMC 2019 Team Problem 2

Determine the number of ordered pairs of positive integers (m, n) with 1 \leq m \leq 100 and 1 \leq n \leq 100 such that

\operatorname{gcd}(m+1, n+1)=10 \operatorname{gcd}(m, n)