If \(n(A) = m\) and \(n(B) = n\), the total number of non-empty relations that can be defined between \(A\) to \(B\) is