Find the number of pairs $(m, n)$ of integers which satisfy the equation $m^3 + 6m^2 + 5m = 27n^3 + 9n^2 + 9n + 1$. Provide your answer as an integer.

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