One way to solve it might be to use the determinant ab-cd where a, b, c, and d, come from the set {0, 1, 2}. Figure out which allows for invertibility, and then how many ways you can get that value for the determinant.