Then the number of elements in the set \( \{(n,m): n,m \in \{1,2,\ldots,10\} \text{ and } nA^n + mB^m = I \} \) is ________.